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
664 HAVE_LINUX_TPACKET_AUXDATA
717 program_transform_name
730 enable_option_checking
755 ac_precious_vars
='build_alias
768 # Initialize some variables set by options.
770 ac_init_version
=false
771 ac_unrecognized_opts
=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name
=s
,x
,x
,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir
='${exec_prefix}/bin'
797 sbindir
='${exec_prefix}/sbin'
798 libexecdir
='${exec_prefix}/libexec'
799 datarootdir
='${prefix}/share'
800 datadir
='${datarootdir}'
801 sysconfdir
='${prefix}/etc'
802 sharedstatedir
='${prefix}/com'
803 localstatedir
='${prefix}/var'
804 includedir
='${prefix}/include'
805 oldincludedir
='/usr/include'
806 docdir
='${datarootdir}/doc/${PACKAGE}'
807 infodir
='${datarootdir}/info'
812 libdir
='${exec_prefix}/lib'
813 localedir
='${datarootdir}/locale'
814 mandir
='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\
$ac_option
828 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 # Accept the important Cygnus configure options, so we can diagnose typos.
835 case $ac_dashdash$ac_option in
839 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
841 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
844 -build |
--build |
--buil |
--bui |
--bu)
845 ac_prev
=build_alias
;;
846 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
847 build_alias
=$ac_optarg ;;
849 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
850 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
851 ac_prev
=cache_file
;;
852 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
853 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
854 cache_file
=$ac_optarg ;;
857 cache_file
=config.cache
;;
859 -datadir |
--datadir |
--datadi |
--datad)
861 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
862 datadir
=$ac_optarg ;;
864 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
865 |
--dataroo |
--dataro |
--datar)
866 ac_prev
=datarootdir
;;
867 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
868 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
869 datarootdir
=$ac_optarg ;;
871 -disable-* |
--disable-*)
872 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
875 as_fn_error $?
"invalid feature name: $ac_useropt"
876 ac_useropt_orig
=$ac_useropt
877 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep
=', ';;
885 eval enable_
$ac_useropt=no
;;
887 -docdir |
--docdir |
--docdi |
--doc |
--do)
889 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
892 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
894 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
897 -enable-* |
--enable-*)
898 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
901 as_fn_error $?
"invalid feature name: $ac_useropt"
902 ac_useropt_orig
=$ac_useropt
903 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep
=', ';;
911 eval enable_
$ac_useropt=\
$ac_optarg ;;
913 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
914 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
915 |
--exec |
--exe |
--ex)
916 ac_prev
=exec_prefix
;;
917 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
918 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
919 |
--exec=* |
--exe=* |
--ex=*)
920 exec_prefix
=$ac_optarg ;;
922 -gas |
--gas |
--ga |
--g)
923 # Obsolete; use --with-gas.
926 -help |
--help |
--hel |
--he |
-h)
928 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
929 ac_init_help
=recursive
;;
930 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
931 ac_init_help
=short
;;
933 -host |
--host |
--hos |
--ho)
934 ac_prev
=host_alias
;;
935 -host=* |
--host=* |
--hos=* |
--ho=*)
936 host_alias
=$ac_optarg ;;
938 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
940 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
942 htmldir
=$ac_optarg ;;
944 -includedir |
--includedir |
--includedi |
--included |
--include \
945 |
--includ |
--inclu |
--incl |
--inc)
946 ac_prev
=includedir
;;
947 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
948 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
949 includedir
=$ac_optarg ;;
951 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
953 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
954 infodir
=$ac_optarg ;;
956 -libdir |
--libdir |
--libdi |
--libd)
958 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
961 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
962 |
--libexe |
--libex |
--libe)
963 ac_prev
=libexecdir
;;
964 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
965 |
--libexe=* |
--libex=* |
--libe=*)
966 libexecdir
=$ac_optarg ;;
968 -localedir |
--localedir |
--localedi |
--localed |
--locale)
970 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
971 localedir
=$ac_optarg ;;
973 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
974 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
975 ac_prev
=localstatedir
;;
976 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
977 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
978 localstatedir
=$ac_optarg ;;
980 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
982 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
986 # Obsolete; use --without-fp.
989 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
990 |
--no-cr |
--no-c |
-n)
993 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
994 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
997 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
998 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
999 |
--oldin |
--oldi |
--old |
--ol |
--o)
1000 ac_prev
=oldincludedir
;;
1001 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1002 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1003 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1004 oldincludedir
=$ac_optarg ;;
1006 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1008 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1009 prefix
=$ac_optarg ;;
1011 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1012 |
--program-pre |
--program-pr |
--program-p)
1013 ac_prev
=program_prefix
;;
1014 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1015 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1016 program_prefix
=$ac_optarg ;;
1018 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1019 |
--program-suf |
--program-su |
--program-s)
1020 ac_prev
=program_suffix
;;
1021 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1022 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1023 program_suffix
=$ac_optarg ;;
1025 -program-transform-name |
--program-transform-name \
1026 |
--program-transform-nam |
--program-transform-na \
1027 |
--program-transform-n |
--program-transform- \
1028 |
--program-transform |
--program-transfor \
1029 |
--program-transfo |
--program-transf \
1030 |
--program-trans |
--program-tran \
1031 |
--progr-tra |
--program-tr |
--program-t)
1032 ac_prev
=program_transform_name
;;
1033 -program-transform-name=* |
--program-transform-name=* \
1034 |
--program-transform-nam=* |
--program-transform-na=* \
1035 |
--program-transform-n=* |
--program-transform-=* \
1036 |
--program-transform=* |
--program-transfor=* \
1037 |
--program-transfo=* |
--program-transf=* \
1038 |
--program-trans=* |
--program-tran=* \
1039 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1040 program_transform_name
=$ac_optarg ;;
1042 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1044 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1045 pdfdir
=$ac_optarg ;;
1047 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1049 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1053 |
-silent |
--silent |
--silen |
--sile |
--sil)
1056 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1058 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1060 sbindir
=$ac_optarg ;;
1062 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1063 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1064 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1066 ac_prev
=sharedstatedir
;;
1067 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1068 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1069 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1071 sharedstatedir
=$ac_optarg ;;
1073 -site |
--site |
--sit)
1075 -site=* |
--site=* |
--sit=*)
1078 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1080 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1081 srcdir
=$ac_optarg ;;
1083 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1084 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1085 ac_prev
=sysconfdir
;;
1086 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1087 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1088 sysconfdir
=$ac_optarg ;;
1090 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1091 ac_prev
=target_alias
;;
1092 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1093 target_alias
=$ac_optarg ;;
1095 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1098 -version |
--version |
--versio |
--versi |
--vers |
-V)
1099 ac_init_version
=: ;;
1102 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error $?
"invalid package name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval with_
$ac_useropt=\
$ac_optarg ;;
1117 -without-* |
--without-*)
1118 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1121 as_fn_error $?
"invalid package name: $ac_useropt"
1122 ac_useropt_orig
=$ac_useropt
1123 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1128 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep
=', ';;
1131 eval with_
$ac_useropt=no
;;
1134 # Obsolete; use --with-x.
1137 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1138 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1139 ac_prev
=x_includes
;;
1140 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1141 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1142 x_includes
=$ac_optarg ;;
1144 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1145 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1146 ac_prev
=x_libraries
;;
1147 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1148 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1149 x_libraries
=$ac_optarg ;;
1151 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information"
1156 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1160 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1162 eval $ac_envvar=\
$ac_optarg
1163 export $ac_envvar ;;
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 if test -n "$ac_prev"; then
1177 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $?
"missing argument to $ac_option"
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1184 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 # Check all directory arguments for consistency.
1190 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1195 eval ac_val
=\$
$ac_var
1196 # Remove trailing slashes.
1199 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\
$ac_val;;
1202 # Be sure to have absolute directory names.
1204 [\\/$
]* | ?
:[\\/]* ) continue;;
1205 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1207 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1215 target
=$target_alias
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x
; then
1219 if test "x$build_alias" = x
; then
1220 cross_compiling
=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1227 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1229 test "$silent" = yes && exec 6>/dev
/null
1232 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di
=`ls -di .` &&
1234 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $?
"working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $?
"pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted
=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir
=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1272 ac_srcdir_defaulted
=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1276 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1290 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 for ac_var
in $ac_precious_vars; do
1293 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1295 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1306 \`configure' configures this package to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1364 --build=BUILD configure
for building on BUILD
[guessed
]
1365 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1366 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1370 if test -n "$ac_init_help"; then
1375 --disable-option-checking ignore unrecognized
--enable/--with options
1376 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1377 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1378 --disable-largefile omit support
for large files
1379 --disable-protochain disable
\"protochain
\" insn
1380 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1381 getaddrinfo available
]
1382 --enable-optimizer-dbg build optimizer debugging code
1383 --enable-yydebug build parser debugging code
1384 --disable-universal don
't build universal on OS X
1385 --enable-shared build shared libraries [default=yes, if support
1387 --enable-usb enable nusb support [default=yes, if support
1389 --enable-bluetooth enable Bluetooth support [default=yes, if support
1391 --enable-dbus enable D-Bus capture support [default=yes, if
1393 --enable-packet-ring enable Linux packet ring support [default=yes]
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --without-gcc don't use gcc
1399 --with-sita include SITA support
1400 --with-pcap=TYPE use packet capture TYPE
1401 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1403 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1404 DIR
, if supplied
).
[default
=yes, if present
]
1405 --with-dag-includes=IDIR
1406 Endace DAG include directory
, if not DIR
/include
1407 --with-dag-libraries=LDIR
1408 Endace DAG library directory
, if not DIR
/lib
1409 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1410 supplied
).
[default
=yes, if present
]
1411 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1412 DIR
, if supplied
).
[default
=yes, if present
]
1413 --with-snf-includes=IDIR
1414 Myricom SNF include directory
, if not DIR
/include
1415 --with-snf-libraries=LDIR
1416 Myricom SNF library directory
, if not DIR
/lib
1417 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1418 directory DIR
, if supplied
).
[default
=yes, if
1421 Some influential environment variables
:
1422 CC C compiler
command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1425 nonstandard directory
<lib dir
>
1426 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1427 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1428 you have headers
in a nonstandard directory
<include dir
>
1430 YACC The
`Yet Another Compiler Compiler' implementation to use.
1431 Defaults to the first program found out of: `bison
-y', `byacc',
1433 YFLAGS The list of arguments that will be passed by default to $YACC.
1434 This script will default YFLAGS to the empty string to avoid a
1435 default value of `-d' given by some make applications.
1437 Use these variables to override the choices made by `configure' or to
help
1438 it to
find libraries and programs with nonstandard names
/locations.
1440 Report bugs to the package provider.
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1456 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1464 ac_abs_top_builddir
=$ac_pwd
1465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir
=$ac_top_build_prefix
1470 .
) # We are building in place.
1472 ac_top_srcdir
=$ac_top_builddir_sub
1473 ac_abs_top_srcdir
=$ac_pwd ;;
1474 [\\/]* | ?
:[\\/]* ) # Absolute name.
1475 ac_srcdir
=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir
=$srcdir
1477 ac_abs_top_srcdir
=$srcdir ;;
1479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1485 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1504 generated by GNU Autoconf
2.69
1506 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1507 This configure
script is free software
; the Free Software Foundation
1508 gives unlimited permission to copy
, distribute and modify it.
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile
()
1522 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1523 rm -f conftest.
$ac_objext
1524 if { { ac_try
="$ac_compile"
1526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1553 } # ac_fn_c_try_compile
1555 # ac_fn_c_try_cpp LINENO
1556 # ----------------------
1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1564 *) ac_try_echo
=$ac_try;;
1566 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 if test -s conftest.err
; then
1571 grep -v '^ *+' conftest.err
>conftest.er1
1572 cat conftest.er1
>&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } > conftest.i
&& {
1577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.
$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status
$ac_retval
1592 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1595 # the include files in INCLUDES and setting the cache variable VAR
1597 ac_fn_c_check_header_mongrel
()
1599 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1600 if eval \
${$3+:} false
; then :
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \
${$3+:} false
; then :
1604 $as_echo_n "(cached) " >&6
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608 $as_echo "$ac_res" >&6; }
1610 # Is the header compilable?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1612 $as_echo_n "checking $2 usability... " >&6; }
1613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1618 if ac_fn_c_try_compile
"$LINENO"; then :
1619 ac_header_compiler
=yes
1621 ac_header_compiler
=no
1623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1625 $as_echo "$ac_header_compiler" >&6; }
1627 # Is the header present?
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1629 $as_echo_n "checking $2 presence... " >&6; }
1630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1634 if ac_fn_c_try_cpp
"$LINENO"; then :
1635 ac_header_preproc
=yes
1637 ac_header_preproc
=no
1639 rm -f conftest.err conftest.i conftest.
$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1641 $as_echo "$ac_header_preproc" >&6; }
1643 # So? What about this header?
1644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1647 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1653 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1655 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1657 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1659 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \
${$3+:} false
; then :
1667 $as_echo_n "(cached) " >&6
1669 eval "$3=\$ac_header_compiler"
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 } # ac_fn_c_check_header_mongrel
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1685 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1686 if { { ac_try
="$ac_link"
1688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1699 *) ac_try_echo
=$ac_try;;
1701 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1713 ac_retval
=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status
$ac_retval
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile
()
1727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \
${$3+:} false
; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1738 if ac_fn_c_try_compile
"$LINENO"; then :
1743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_compile
1752 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1753 # -------------------------------------------
1754 # Tests whether TYPE exists after having included INCLUDES, setting cache
1755 # variable VAR accordingly.
1756 ac_fn_c_check_type
()
1758 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \
${$3+:} false
; then :
1762 $as_echo_n "(cached) " >&6
1765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1777 if ac_fn_c_try_compile
"$LINENO"; then :
1778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1790 if ac_fn_c_try_compile
"$LINENO"; then :
1795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_type
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1812 rm -f conftest.
$ac_objext conftest
$ac_exeext
1813 if { { ac_try
="$ac_link"
1815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1875 # include <limits.h>
1877 # include <assert.h>
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1904 if ac_fn_c_try_link "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 } # ac_fn_c_check_func
1919 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1920 # ---------------------------------------------
1921 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923 ac_fn_c_check_decl ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1927 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1939 #ifndef $as_decl_name
1941 (void) $as_decl_use;
1943 (void) $as_decl_name;
1951 if ac_fn_c_try_compile "$LINENO"; then :
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 } # ac_fn_c_check_decl
1964 cat >config.log <<_ACEOF
1965 This file contains any messages produced by compilers while
1966 running configure, to aid debugging if configure makes a mistake.
1968 It was created by $as_me, which was
1969 generated by GNU Autoconf 2.69. Invocation command line was
1981 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1982 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1983 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1984 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1985 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1987 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1988 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1990 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1991 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1992 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1993 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1994 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1995 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1996 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 $as_echo "PATH: $as_dir"
2021 # Keep a trace of the command line.
2022 # Strip out --no-create and --no-recursion so they do not pile up.
2023 # Strip out --silent because we don't want to record it for future runs.
2024 # Also quote any args containing shell meta-characters.
2025 # Make two passes to allow for proper duplicate-argument suppression.
2029 ac_must_keep_next=false
2035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2037 | -silent | --silent | --silen | --sile | --sil)
2040 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2043 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045 as_fn_append ac_configure_args1 " '$ac_arg'"
2046 if test $ac_must_keep_next = true; then
2047 ac_must_keep_next=false # Got value, back to normal.
2050 *=* | --config-cache | -C | -disable-* | --disable-* \
2051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2053 | -with-* | --with-* | -without-* | --without-* | --x)
2054 case "$ac_configure_args0 " in
2055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 -* ) ac_must_keep_next=true ;;
2061 as_fn_append ac_configure_args " '$ac_arg'"
2066 { ac_configure_args0=; unset ac_configure_args0;}
2067 { ac_configure_args1=; unset ac_configure_args1;}
2069 # When interrupted or exit'd, cleanup temporary files, and complete
2070 # config.log. We remove comments because anyway the quotes in there
2071 # would cause problems or look ugly.
2072 # WARNING: Use '\'' to represent an apostrophe within the trap.
2073 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2074 trap 'exit_status=$?
2075 # Save into config.log some information that might help in debugging.
2079 $as_echo "## ---------------- ##
2080 ## Cache variables. ##
2081 ## ---------------- ##"
2083 # The following way of writing the cache mishandles newlines in values,
2085 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2086 eval ac_val=\$$ac_var
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2101 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 $as_echo "## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##"
2119 for ac_var in $ac_subst_vars
2121 eval ac_val=\$$ac_var
2123 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 $as_echo "$ac_var='\''$ac_val'\''"
2129 if test -n "$ac_subst_files"; then
2130 $as_echo "## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##"
2134 for ac_var in $ac_subst_files
2136 eval ac_val=\$$ac_var
2138 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 $as_echo "$ac_var='\''$ac_val'\''"
2145 if test -s confdefs.h; then
2146 $as_echo "## ----------- ##
2153 test "$ac_signal" != 0 &&
2154 $as_echo "$as_me: caught signal $ac_signal"
2155 $as_echo "$as_me: exit $exit_status"
2157 rm -f core *.core core.conftest.* &&
2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161 for ac_signal in 1 2 13 15; do
2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2167 rm -f -r conftest* confdefs.h
2169 $as_echo "/* confdefs.h */" > confdefs.h
2171 # Predefined preprocessor variables.
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_NAME "$PACKAGE_NAME"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_STRING "$PACKAGE_STRING"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_URL "$PACKAGE_URL"
2198 # Let the site file select an alternate cache file if it wants to.
2199 # Prefer an explicitly selected file to automatically selected ones.
2202 if test -n "$CONFIG_SITE"; then
2203 # We do not want a PATH search for config.site.
2204 case $CONFIG_SITE in #((
2205 -*) ac_site_file1=./$CONFIG_SITE;;
2206 */*) ac_site_file1=$CONFIG_SITE;;
2207 *) ac_site_file1=./$CONFIG_SITE;;
2209 elif test "x$prefix" != xNONE; then
2210 ac_site_file1=$prefix/share/config.site
2211 ac_site_file2=$prefix/etc/config.site
2213 ac_site_file1=$ac_default_prefix/share/config.site
2214 ac_site_file2=$ac_default_prefix/etc/config.site
2216 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218 test "x$ac_site_file" = xNONE && continue
2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2224 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $? "failed to load site
script $ac_site_file
2227 See \
`config.log' for more details" "$LINENO" 5; }
2231 if test -r "$cache_file"; then
2232 # Some versions of bash will fail to source /dev/null (special files
2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239 *) . "./$cache_file";;
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 $as_echo "$as_me: creating cache $cache_file" >&6;}
2248 # Check that the precious variables saved in the cache have kept the same
2250 ac_cache_corrupted=false
2251 for ac_var in $ac_precious_vars; do
2252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253 eval ac_new_set=\$ac_env_${ac_var}_set
2254 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255 eval ac_new_val=\$ac_env_${ac_var}_value
2256 case $ac_old_set,$ac_new_set in
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2259 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2263 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2264 ac_cache_corrupted=: ;;
2267 if test "x$ac_old_val" != "x$ac_new_val"; then
2268 # differences in whitespace do not lead to failure.
2269 ac_old_val_w=`echo x
$ac_old_val`
2270 ac_new_val_w=`echo x
$ac_new_val`
2271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2274 ac_cache_corrupted=:
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278 eval $ac_var=\$ac_old_val
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2281 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2283 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2286 # Pass precious variables to config.status.
2287 if test "$ac_new_set" = set; then
2289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2290 *) ac_arg=$ac_var=$ac_new_val ;;
2292 case " $ac_configure_args " in
2293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2294 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2298 if $ac_cache_corrupted; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2305 ## -------------------- ##
2306 ## Main body of script. ##
2307 ## -------------------- ##
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319 if test -f "$ac_dir/install-sh"; then
2321 ac_install_sh="$ac_aux_dir/install-sh -c"
2323 elif test -f "$ac_dir/install.sh"; then
2325 ac_install_sh="$ac_aux_dir/install.sh -c"
2327 elif test -f "$ac_dir/shtool"; then
2329 ac_install_sh="$ac_aux_dir/shtool install -c"
2333 if test -z "$ac_aux_dir"; then
2334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337 # These three variables are undocumented and unsupported,
2338 # and are intended to be withdrawn in a future Autoconf release.
2339 # They can cause serious problems if a builder's source tree is in a directory
2340 # whose full name contains unusual characters.
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346 # Make sure we can run config.sub.
2347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2348 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2351 $as_echo_n "checking build system type... " >&6; }
2352 if ${ac_cv_build+:} false; then :
2353 $as_echo_n "(cached) " >&6
2355 ac_build_alias=$build_alias
2356 test "x$ac_build_alias" = x &&
2357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2358 test "x$ac_build_alias" = x &&
2359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2365 $as_echo "$ac_cv_build" >&6; }
2366 case $ac_cv_build in
2368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371 ac_save_IFS=$IFS; IFS='-'
2377 # Remember, the first character of IFS is used to create $*,
2378 # except with old shells:
2381 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2385 $as_echo_n "checking host system type... " >&6; }
2386 if ${ac_cv_host+:} false; then :
2387 $as_echo_n "(cached) " >&6
2389 if test "x$host_alias" = x; then
2390 ac_cv_host=$ac_cv_build
2392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2398 $as_echo "$ac_cv_host" >&6; }
2401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2404 ac_save_IFS=$IFS; IFS='-'
2410 # Remember, the first character of IFS is used to create $*,
2411 # except with old shells:
2414 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2418 $as_echo_n "checking target system type... " >&6; }
2419 if ${ac_cv_target+:} false; then :
2420 $as_echo_n "(cached) " >&6
2422 if test "x$target_alias" = x; then
2423 ac_cv_target=$ac_cv_host
2425 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2431 $as_echo "$ac_cv_target" >&6; }
2432 case $ac_cv_target in
2434 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2436 target=$ac_cv_target
2437 ac_save_IFS=$IFS; IFS='-'
2443 # Remember, the first character of IFS is used to create $*,
2444 # except with old shells:
2447 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2450 # The aliases save the names the user supplied, while $host etc.
2451 # will get canonicalized.
2452 test -n "$target_alias" &&
2453 test "$program_prefix$program_suffix$program_transform_name" = \
2455 program_prefix=${target_alias}-
2464 # Check whether --with-gcc was given.
2465 if test "${with_gcc+set}" = set; then :
2470 if test "${srcdir}" != "." ; then
2471 V_CCOPT="-I\$(srcdir)"
2473 if test "${CFLAGS+set}" = set; then
2474 LBL_CFLAGS="$CFLAGS"
2476 if test -z "$CC" ; then
2480 # Extract the first word of "shlicc2", so it can be a program name with args.
2481 set dummy shlicc2; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_SHLICC2+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$SHLICC2"; then
2488 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_SHLICC2="yes"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2508 SHLICC2=$ac_cv_prog_SHLICC2
2509 if test -n "$SHLICC2"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2511 $as_echo "$SHLICC2" >&6; }
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2518 if test $SHLICC2 = yes ; then
2525 if test -z "$CC" -a "$with_gcc" = no ; then
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 if test -n "$CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566 $as_echo "$CC" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2574 if test -z "$ac_cv_prog_CC"; then
2576 # Extract the first word of "gcc", so it can be a program name with args.
2577 set dummy gcc; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$ac_ct_CC"; then
2584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_ac_ct_CC="gcc"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604 if test -n "$ac_ct_CC"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2606 $as_echo "$ac_ct_CC" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2612 if test "x$ac_ct_CC" = x; then
2615 case $cross_compiling:$ac_tool_warned in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2627 if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}cc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}cc"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2668 if test -z "$CC"; then
2669 # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688 ac_prog_rejected=yes
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test $ac_prog_rejected = yes; then
2700 # We found a bogon in the path, so make sure we never use it.
2701 set dummy $ac_cv_prog_CC
2703 if test $# != 0; then
2704 # We chose a different compiler from the bogus one.
2705 # However, it has the same basename, so the bogon will be chosen
2706 # first if we set CC to just the basename; use the full file name.
2708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2714 if test -n "$CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 $as_echo "$CC" >&6; }
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2724 if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 for ac_prog in cl.exe
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2765 test -n "$CC" && break
2768 if test -z "$CC"; then
2770 for ac_prog in cl.exe
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_CC="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$ac_ct_CC" && break
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2831 See \
`config.log' for more details" "$LINENO" 5; }
2833 # Provide some information about the compiler.
2834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2837 for ac_option in --version -v -V -qversion; do
2838 { { ac_try="$ac_compiler $ac_option >&5"
2840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2841 *) ac_try_echo
=$ac_try;;
2843 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844 $as_echo "$ac_try_echo"; } >&5
2845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2847 if test -s conftest.err
; then
2849 ... rest of stderr output deleted ...
2850 10q' conftest.err
>conftest.er1
2851 cat conftest.er1
>&5
2853 rm -f conftest.er1 conftest.err
2854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855 test $ac_status = 0; }
2858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2869 ac_clean_files_save
=$ac_clean_files
2870 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2871 # Try to create an executable without -o first, disregard a.out.
2872 # It will help us diagnose broken compilers, and finding out an intuition
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2875 $as_echo_n "checking whether the C compiler works... " >&6; }
2876 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2878 # The possible output files:
2879 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882 for ac_file
in $ac_files
2885 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2886 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2891 if { { ac_try
="$ac_link_default"
2893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_link_default") 2>&5
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; then :
2902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2903 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2905 # so that the user can short-circuit this test for compilers unknown to
2907 for ac_file in $ac_files ''
2909 test -f "$ac_file" || continue
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2914 # We found the default executable, but exeext='' is most
2918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 # We set ac_cv_exeext here because the later test for it is not
2923 # safe: cross compilers may not add the suffix if given an `-o'
2924 # argument, so we may need to know it at that point already.
2925 # Even if this section looks crufty: it has the advantage of
2932 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937 if test -z "$ac_file"; then :
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 $as_echo "$as_me: failed program was:" >&5
2941 sed 's
/^
/|
/' conftest.$ac_ext >&5
2943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2945 as_fn_error 77 "C compiler cannot create executables
2946 See \`config.log
' for more details" "$LINENO" 5; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2952 $as_echo_n "checking for C compiler default output file name... " >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 ac_exeext=$ac_cv_exeext
2957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2958 ac_clean_files=$ac_clean_files_save
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2960 $as_echo_n "checking for suffix of executables... " >&6; }
2961 if { { ac_try="$ac_link"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_link") 2>&5
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2973 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2976 for ac_file
in conftest.exe conftest conftest.
*; do
2977 test -f "$ac_file" ||
continue
2979 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2980 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details" "$LINENO" 5; }
2991 rm -f conftest conftest
$ac_cv_exeext
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2993 $as_echo "$ac_cv_exeext" >&6; }
2995 rm -f conftest.
$ac_ext
2996 EXEEXT
=$ac_cv_exeext
2998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2999 /* end confdefs.h. */
3004 FILE *f = fopen ("conftest.out", "w");
3005 return ferror (f) || fclose (f) != 0;
3011 ac_clean_files
="$ac_clean_files conftest.out"
3012 # Check that the compiler produces executables we can run. If not, either
3013 # the compiler is broken, or we cross compile.
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3015 $as_echo_n "checking whether we are cross compiling... " >&6; }
3016 if test "$cross_compiling" != yes; then
3017 { { ac_try
="$ac_link"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }
3028 if { ac_try='./conftest$ac_cv_exeext'
3029 { { case "(($ac_try" in
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_try") 2>&5
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; }; then
3041 if test "$cross_compiling" = maybe
; then
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $?
"cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details" "$LINENO" 5; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3053 $as_echo "$cross_compiling" >&6; }
3055 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3056 ac_clean_files
=$ac_clean_files_save
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058 $as_echo_n "checking for suffix of object files... " >&6; }
3059 if ${ac_cv_objext+:} false
; then :
3060 $as_echo_n "(cached) " >&6
3062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3073 rm -f conftest.o conftest.obj
3074 if { { ac_try
="$ac_compile"
3076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_compile") 2>&5
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; then :
3085 for ac_file in conftest.o conftest.obj conftest.*; do
3086 test -f "$ac_file" || continue;
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3100 See \
`config.log' for more details" "$LINENO" 5; }
3102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105 $as_echo "$ac_cv_objext" >&6; }
3106 OBJEXT=$ac_cv_objext
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110 if ${ac_cv_c_compiler_gnu+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3127 if ac_fn_c_try_compile "$LINENO"; then :
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138 if test $ac_compiler_gnu = yes; then
3143 ac_test_CFLAGS=${CFLAGS+set}
3144 ac_save_CFLAGS=$CFLAGS
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3147 if ${ac_cv_prog_cc_g+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 ac_save_c_werror_flag=$ac_c_werror_flag
3151 ac_c_werror_flag=yes
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3165 if ac_fn_c_try_compile "$LINENO"; then :
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3180 if ac_fn_c_try_compile "$LINENO"; then :
3183 ac_c_werror_flag=$ac_save_c_werror_flag
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 if ac_fn_c_try_compile "$LINENO"; then :
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207 $as_echo "$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3217 if test "$GCC" = yes; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225 if ${ac_cv_prog_cc_c89+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 ac_cv_prog_cc_c89=no
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3249 s = g (p, va_arg (v,int));
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287 ac_cv_prog_cc_c89=$ac_arg
3289 rm -f core conftest.err conftest.$ac_objext
3290 test "x$ac_cv_prog_cc_c89" != "xno" && break
3292 rm -f conftest.$ac_ext
3297 case "x$ac_cv_prog_cc_c89" in
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3300 $as_echo "none needed" >&6; } ;;
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3303 $as_echo "unsupported" >&6; } ;;
3305 CC="$CC $ac_cv_prog_cc_c89"
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309 if test "x$ac_cv_prog_cc_c89" != xno; then :
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test "$GCC" = yes ; then
3326 # -Werror forces warnings to be errors.
3328 ac_lbl_cc_force_warning_errors=-Werror
3331 # Try to have the compiler default to hiding symbols,
3332 # so that only symbols explicitly exported with
3333 # PCAP_API will be visible outside (shared) libraries.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3337 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3338 save_CFLAGS="$CFLAGS"
3339 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3341 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3342 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3344 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3345 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3347 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3349 CFLAGS="$CFLAGS -fvisibility=hidden"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3366 CFLAGS="$save_CFLAGS"
3367 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 CFLAGS="$save_CFLAGS"
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 V_INCLS="$V_INCLS -I/usr/local/include"
3380 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3386 # This is assumed either to be GCC or clang, both
3387 # of which use -Werror to force warnings to be errors.
3389 ac_lbl_cc_force_warning_errors=-Werror
3392 # Try to have the compiler default to hiding symbols,
3393 # so that only symbols explicitly exported with
3394 # PCAP_API will be visible outside (shared) libraries.
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3398 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3399 save_CFLAGS="$CFLAGS"
3400 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3402 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3403 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3405 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3406 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3408 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3410 CFLAGS="$CFLAGS -fvisibility=hidden"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 if ac_fn_c_try_compile "$LINENO"; then :
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 $as_echo "yes" >&6; }
3427 CFLAGS="$save_CFLAGS"
3428 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 CFLAGS="$save_CFLAGS"
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 # HP C, which is what we presume we're using, doesn't
3444 # exit with a non-zero exit status if we hand it an
3445 # invalid -W flag, can't be forced to do so even with
3446 # +We, and doesn't handle GCC-style -W flags, so we
3447 # don't want to try using GCC-style -W flags.
3449 ac_lbl_cc_dont_try_gcc_dashW=yes
3454 # MIPS C, which is what we presume we're using, doesn't
3455 # necessarily exit with a non-zero exit status if we
3456 # hand it an invalid -W flag, can't be forced to do
3457 # so, and doesn't handle GCC-style -W flags, so we
3458 # don't want to try using GCC-style -W flags.
3460 ac_lbl_cc_dont_try_gcc_dashW=yes
3462 # It also, apparently, defaults to "char" being
3463 # unsigned, unlike most other C implementations;
3464 # I suppose we could say "signed char" whenever
3465 # we want to guarantee a signed "char", but let's
3466 # just force signed chars.
3468 # -xansi is normally the default, but the
3469 # configure script was setting it; perhaps -cckr
3470 # was the default in the Old Days. (Then again,
3471 # that would probably be for backwards compatibility
3472 # in the days when ANSI C was Shiny and New, i.e.
3473 # 1989 and the early '90's, so maybe we can just
3474 # drop support for those compilers.)
3476 # -g is equivalent to -g2, which turns off
3477 # optimization; we choose -g3, which generates
3478 # debugging information but doesn't turn off
3479 # optimization (even if the optimization would
3480 # cause inaccuracies in debugging).
3482 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3487 # Presumed to be DEC OSF/1, Digital UNIX, or
3490 # The DEC C compiler, which is what we presume we're
3491 # using, doesn't exit with a non-zero exit status if we
3492 # hand it an invalid -W flag, can't be forced to do
3493 # so, and doesn't handle GCC-style -W flags, so we
3494 # don't want to try using GCC-style -W flags.
3496 ac_lbl_cc_dont_try_gcc_dashW=yes
3498 # -g is equivalent to -g2, which turns off
3499 # optimization; we choose -g3, which generates
3500 # debugging information but doesn't turn off
3501 # optimization (even if the optimization would
3502 # cause inaccuracies in debugging).
3504 V_CCOPT="$V_CCOPT -g3"
3509 # Assumed to be Sun C, which requires -errwarn to force
3510 # warnings to be treated as errors.
3512 ac_lbl_cc_force_warning_errors=-errwarn
3515 # Try to have the compiler default to hiding symbols,
3516 # so that only symbols explicitly exported with
3517 # PCAP_API will be visible outside (shared) libraries.
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3521 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3522 save_CFLAGS="$CFLAGS"
3523 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3525 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3526 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3528 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3529 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3531 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3533 CFLAGS="$CFLAGS -xldscope=hidden"
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_c_try_compile "$LINENO"; then :
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3549 $as_echo "yes" >&6; }
3550 CFLAGS="$save_CFLAGS"
3551 V_CCOPT="$V_CCOPT -xldscope=hidden"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 CFLAGS="$save_CFLAGS"
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3566 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3567 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572 #include <sys/types.h>
3576 struct a { int b; };
3577 void c(const struct a *)
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_lbl_cc_const_proto=yes
3585 ac_cv_lbl_cc_const_proto=no
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3591 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3592 if test $ac_cv_lbl_cc_const_proto = no ; then
3594 $as_echo "#define const /**/" >>confdefs.h
3599 V_CCOPT="$V_CCOPT -O"
3603 if test "$GCC" = yes ; then
3605 # On platforms where we build a shared library:
3607 # add options to generate position-independent code,
3608 # if necessary (it's the default in AIX and Darwin/OS X);
3610 # define option to set the soname of the shared library,
3611 # if the OS supports that;
3613 # add options to specify, at link time, a directory to
3614 # add to the run-time search path, if that's necessary.
3616 V_SHLIB_CMD="\$(CC)"
3617 V_SHLIB_OPT="-shared"
3623 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3625 # Platforms where the linker is the GNU linker
3626 # or accepts command-line arguments like
3627 # those the GNU linker accepts.
3629 # Some instruction sets require -fPIC on some
3630 # operating systems. Check for them. If you
3631 # have a combination that requires it, add it
3646 V_CCOPT="$V_CCOPT $PIC_OPT"
3647 V_SONAME_OPT="-Wl,-soname,"
3648 V_RPATH_OPT="-Wl,-rpath,"
3652 V_CCOPT="$V_CCOPT -fpic"
3654 # XXX - this assumes GCC is using the HP linker,
3655 # rather than the GNU linker, and that the "+h"
3656 # option is used on all HP-UX platforms, both .sl
3659 V_SONAME_OPT="-Wl,+h,"
3661 # By default, directories specifed with -L
3662 # are added to the run-time search path, so
3663 # we don't add them in pcap-config.
3668 V_CCOPT="$V_CCOPT -fpic"
3670 # XXX - this assumes GCC is using the Sun linker,
3671 # rather than the GNU linker.
3673 V_SONAME_OPT="-Wl,-h,"
3674 V_RPATH_OPT="-Wl,-R,"
3679 # Set the appropriate compiler flags and, on platforms
3680 # where we build a shared library:
3682 # add options to generate position-independent code,
3683 # if necessary (it's the default in Darwin/OS X);
3685 # if we generate ".so" shared libraries, define the
3686 # appropriate options for building the shared library;
3688 # add options to specify, at link time, a directory to
3689 # add to the run-time search path, if that's necessary.
3691 # Note: spaces after V_SONAME_OPT are significant; on
3692 # some platforms the soname is passed with a GCC-like
3693 # "-Wl,-soname,{soname}" option, with the soname part
3694 # of the option, while on other platforms the C compiler
3695 # driver takes it as a regular option with the soname
3696 # following the option. The same applies to V_RPATH_OPT.
3701 V_SHLIB_CMD="\$(CC)"
3702 V_SHLIB_OPT="-G -bnoentry -bexpall"
3705 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3709 V_CCOPT="$V_CCOPT -fpic"
3710 V_SHLIB_CMD="\$(CC)"
3711 V_SHLIB_OPT="-shared"
3712 V_SONAME_OPT="-Wl,-soname,"
3713 V_RPATH_OPT="-Wl,-rpath,"
3717 V_CCOPT="$V_CCOPT +z"
3718 V_SHLIB_CMD="\$(LD)"
3722 # By default, directories specifed with -L
3723 # are added to the run-time search path, so
3724 # we don't add them in pcap-config.
3730 # Presumed to be DEC OSF/1, Digital UNIX, or
3733 V_SHLIB_CMD="\$(CC)"
3734 V_SHLIB_OPT="-shared"
3735 V_SONAME_OPT="-soname "
3736 V_RPATH_OPT="-rpath "
3740 V_CCOPT="$V_CCOPT -Kpic"
3741 V_SHLIB_CMD="\$(CC)"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3750 $as_echo_n "checking for inline... " >&6; }
3751 save_CFLAGS="$CFLAGS"
3753 if ${ac_cv_lbl_inline+:} false; then :
3754 $as_echo_n "(cached) " >&6
3759 for ac_lbl_inline in inline __inline__ __inline
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #define inline $ac_lbl_inline
3764 static inline struct iltest *foo(void);
3770 static inline struct iltest *
3773 static struct iltest xxx;
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_lbl_cc_inline=yes
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 if test "$ac_lbl_cc_inline" = yes ; then
3793 if test "$ac_lbl_cc_inline" = yes ; then
3794 ac_cv_lbl_inline=$ac_lbl_inline
3798 CFLAGS="$save_CFLAGS"
3799 if test ! -z "$ac_cv_lbl_inline" ; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3801 $as_echo "$ac_cv_lbl_inline" >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3807 cat >>confdefs.h <<_ACEOF
3808 #define inline $ac_cv_lbl_inline
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3813 $as_echo_n "checking for __attribute__... " >&6; }
3814 if ${ac_cv___attribute__+:} false; then :
3815 $as_echo_n "(cached) " >&6
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3824 static void foo(void) __attribute__ ((noreturn));
3833 main(int argc, char **argv)
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv___attribute__=yes
3842 ac_cv___attribute__=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 if test "$ac_cv___attribute__" = "yes"; then
3849 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3853 # We can't use __attribute__, so we can't use __attribute__((unused)),
3854 # so we define _U_ to an empty string.
3856 V_DEFS="$V_DEFS -D_U_=\"\""
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3859 $as_echo "$ac_cv___attribute__" >&6; }
3861 if test "$ac_cv___attribute__" = "yes"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3864 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3865 if ${ac_cv___attribute___unused+:} false; then :
3866 $as_echo_n "(cached) " >&6
3869 save_CFLAGS="$CFLAGS"
3870 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3879 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3881 printf("Hello, world!\n");
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv___attribute___unused=yes
3889 ac_cv___attribute___unused=no
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 CFLAGS="$save_CFLAGS"
3895 if test "$ac_cv___attribute___unused" = "yes"; then
3896 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3898 V_DEFS="$V_DEFS -D_U_=\"\""
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3901 $as_echo "$ac_cv___attribute___unused" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3905 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3906 if ${ac_cv___attribute___format+:} false; then :
3907 $as_echo_n "(cached) " >&6
3910 save_CFLAGS="$CFLAGS"
3911 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3918 extern int foo(const char *fmt, ...)
3919 __attribute__ ((format (printf, 1, 2)));
3922 main(int argc, char **argv)
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv___attribute___format=yes
3931 ac_cv___attribute___format=no
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 CFLAGS="$save_CFLAGS"
3937 if test "$ac_cv___attribute___format" = "yes"; then
3939 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3943 $as_echo "$ac_cv___attribute___format" >&6; }
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3954 # On Suns, sometimes $CPP names a directory.
3955 if test -n "$CPP" && test -d "$CPP"; then
3958 if test -z "$CPP"; then
3959 if ${ac_cv_prog_CPP+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 # Double quotes because CPP needs to be expanded
3963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3966 for ac_c_preproc_warn_flag in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3977 # include <limits.h>
3979 # include <assert.h>
3983 if ac_fn_c_try_cpp "$LINENO"; then :
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.i conftest.$ac_ext
3991 # OK, works on sane cases. Now check whether nonexistent headers
3992 # can be detected and how.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3998 # Broken: success on invalid input.
4001 # Passes both tests.
4005 rm -f conftest.err conftest.i conftest.$ac_ext
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.i conftest.err conftest.
$ac_ext
4010 if $ac_preproc_ok; then :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4023 $as_echo "$CPP" >&6; }
4025 for ac_c_preproc_warn_flag
in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4036 # include <limits.h>
4038 # include <assert.h>
4042 if ac_fn_c_try_cpp
"$LINENO"; then :
4045 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.i conftest.
$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4056 if ac_fn_c_try_cpp
"$LINENO"; then :
4057 # Broken: success on invalid input.
4060 # Passes both tests.
4064 rm -f conftest.err conftest.i conftest.
$ac_ext
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.i conftest.err conftest.
$ac_ext
4069 if $ac_preproc_ok; then :
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details" "$LINENO" 5; }
4079 ac_cpp
='$CPP $CPPFLAGS'
4080 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4086 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4087 if ${ac_cv_path_GREP+:} false
; then :
4088 $as_echo_n "(cached) " >&6
4090 if test -z "$GREP"; then
4091 ac_path_GREP_found
=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4094 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4097 test -z "$as_dir" && as_dir
=.
4098 for ac_prog
in grep ggrep
; do
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4101 as_fn_executable_p
"$ac_path_GREP" ||
continue
4102 # Check for GNU ac_path_GREP and select it if it is found.
4103 # Check for GNU $ac_path_GREP
4104 case `"$ac_path_GREP" --version 2>&1` in
4106 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4109 $as_echo_n 0123456789 >"conftest.in"
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'GREP' >> "conftest.nl"
4116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4117 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4118 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_GREP
="$ac_path_GREP"
4122 ac_path_GREP_max
=$ac_count
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4127 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4130 $ac_path_GREP_found && break 3
4135 if test -z "$ac_cv_path_GREP"; then
4136 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 ac_cv_path_GREP
=$GREP
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4144 $as_echo "$ac_cv_path_GREP" >&6; }
4145 GREP
="$ac_cv_path_GREP"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4149 $as_echo_n "checking for egrep... " >&6; }
4150 if ${ac_cv_path_EGREP+:} false
; then :
4151 $as_echo_n "(cached) " >&6
4153 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4154 then ac_cv_path_EGREP
="$GREP -E"
4156 if test -z "$EGREP"; then
4157 ac_path_EGREP_found
=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4163 test -z "$as_dir" && as_dir
=.
4164 for ac_prog
in egrep; do
4165 for ac_exec_ext
in '' $ac_executable_extensions; do
4166 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4167 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4168 # Check for GNU ac_path_EGREP and select it if it is found.
4169 # Check for GNU $ac_path_EGREP
4170 case `"$ac_path_EGREP" --version 2>&1` in
4172 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4175 $as_echo_n 0123456789 >"conftest.in"
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'EGREP' >> "conftest.nl"
4182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4183 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4184 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_EGREP
="$ac_path_EGREP"
4188 ac_path_EGREP_max
=$ac_count
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4193 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4196 $ac_path_EGREP_found && break 3
4201 if test -z "$ac_cv_path_EGREP"; then
4202 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 ac_cv_path_EGREP
=$EGREP
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4211 $as_echo "$ac_cv_path_EGREP" >&6; }
4212 EGREP
="$ac_cv_path_EGREP"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4216 $as_echo_n "checking for ANSI C header files... " >&6; }
4217 if ${ac_cv_header_stdc+:} false
; then :
4218 $as_echo_n "(cached) " >&6
4220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4235 if ac_fn_c_try_compile
"$LINENO"; then :
4236 ac_cv_header_stdc
=yes
4238 ac_cv_header_stdc
=no
4240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4242 if test $ac_cv_header_stdc = yes; then
4243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 $EGREP "memchr" >/dev
/null
2>&1; then :
4253 ac_cv_header_stdc
=no
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "free" >/dev
/null
2>&1; then :
4270 ac_cv_header_stdc
=no
4276 if test $ac_cv_header_stdc = yes; then
4277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278 if test "$cross_compiling" = yes; then :
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4285 #if ((' ' & 0x0FF) == 0x020)
4286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4289 # define ISLOWER(c) \
4290 (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4308 if ac_fn_c_try_run
"$LINENO"; then :
4311 ac_cv_header_stdc
=no
4313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4320 $as_echo "$ac_cv_header_stdc" >&6; }
4321 if test $ac_cv_header_stdc = yes; then
4323 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4329 inttypes.h stdint.h unistd.h
4331 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4334 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4335 cat >>confdefs.h
<<_ACEOF
4336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344 for ac_header
in sys
/bitypes.h
4346 ac_fn_c_check_header_mongrel
"$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4347 if test "x$ac_cv_header_sys_bitypes_h" = xyes
; then :
4348 cat >>confdefs.h
<<_ACEOF
4349 #define HAVE_SYS_BITYPES_H 1
4357 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4358 #ifdef HAVE_SYS_BITYPES_H
4359 #include <sys/bitypes.h>
4362 if test "x$ac_cv_type_int8_t" = xyes
; then :
4366 $as_echo "#define int8_t signed char" >>confdefs.h
4370 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4371 #ifdef HAVE_SYS_BITYPES_H
4372 #include <sys/bitypes.h>
4375 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
4379 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4383 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4384 if test "x$ac_cv_type_int16_t" = xyes
; then :
4388 $as_echo "#define int16_t short" >>confdefs.h
4390 $ac_includes_default
4391 #ifdef HAVE_SYS_BITYPES_H
4392 #include <sys/bitypes.h>
4396 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4397 #ifdef HAVE_SYS_BITYPES_H
4398 #include <sys/bitypes.h>
4401 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
4405 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4409 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4410 #ifdef HAVE_SYS_BITYPES_H
4411 #include <sys/bitypes.h>
4414 if test "x$ac_cv_type_int32_t" = xyes
; then :
4418 $as_echo "#define int32_t int" >>confdefs.h
4422 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4423 #ifdef HAVE_SYS_BITYPES_H
4424 #include <sys/bitypes.h>
4427 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
4431 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4435 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4436 #ifdef HAVE_SYS_BITYPES_H
4437 #include <sys/bitypes.h>
4440 if test "x$ac_cv_type_int64_t" = xyes
; then :
4444 $as_echo "#define int64_t long long" >>confdefs.h
4448 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4449 #ifdef HAVE_SYS_BITYPES_H
4450 #include <sys/bitypes.h>
4453 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
4457 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4463 # Try to arrange for large file support.
4465 # Check whether --enable-largefile was given.
4466 if test "${enable_largefile+set}" = set; then :
4467 enableval
=$enable_largefile;
4470 if test "$enable_largefile" != no
; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4473 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4474 if ${ac_cv_sys_largefile_CC+:} false
; then :
4475 $as_echo_n "(cached) " >&6
4477 ac_cv_sys_largefile_CC
=no
4478 if test "$GCC" != yes; then
4481 # IRIX 6.2 and later do not support large files by default,
4482 # so use the C compiler's -n32 option if that helps.
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <sys/types.h>
4486 /* Check that off_t can represent 2**63 - 1 correctly.
4487 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4488 since some C++ compilers masquerading as C compilers
4489 incorrectly reject 9223372036854775807. */
4490 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4492 && LARGE_OFF_T % 2147483647 == 1)
4502 if ac_fn_c_try_compile
"$LINENO"; then :
4505 rm -f core conftest.err conftest.
$ac_objext
4507 if ac_fn_c_try_compile
"$LINENO"; then :
4508 ac_cv_sys_largefile_CC
=' -n32'; break
4510 rm -f core conftest.err conftest.
$ac_objext
4514 rm -f conftest.
$ac_ext
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4518 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4519 if test "$ac_cv_sys_largefile_CC" != no
; then
4520 CC
=$CC$ac_cv_sys_largefile_CC
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4524 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4525 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <sys/types.h>
4532 /* Check that off_t can represent 2**63 - 1 correctly.
4533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4534 since some C++ compilers masquerading as C compilers
4535 incorrectly reject 9223372036854775807. */
4536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4538 && LARGE_OFF_T % 2147483647 == 1)
4548 if ac_fn_c_try_compile
"$LINENO"; then :
4549 ac_cv_sys_file_offset_bits
=no
; break
4551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #define _FILE_OFFSET_BITS 64
4555 #include <sys/types.h>
4556 /* Check that off_t can represent 2**63 - 1 correctly.
4557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4558 since some C++ compilers masquerading as C compilers
4559 incorrectly reject 9223372036854775807. */
4560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4562 && LARGE_OFF_T % 2147483647 == 1)
4572 if ac_fn_c_try_compile
"$LINENO"; then :
4573 ac_cv_sys_file_offset_bits
=64; break
4575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4576 ac_cv_sys_file_offset_bits
=unknown
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4581 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4582 case $ac_cv_sys_file_offset_bits in #(
4585 cat >>confdefs.h
<<_ACEOF
4586 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4591 if test $ac_cv_sys_file_offset_bits = unknown
; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4593 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4594 if ${ac_cv_sys_large_files+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <sys/types.h>
4601 /* Check that off_t can represent 2**63 - 1 correctly.
4602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4603 since some C++ compilers masquerading as C compilers
4604 incorrectly reject 9223372036854775807. */
4605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4607 && LARGE_OFF_T % 2147483647 == 1)
4617 if ac_fn_c_try_compile
"$LINENO"; then :
4618 ac_cv_sys_large_files
=no
; break
4620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #define _LARGE_FILES 1
4624 #include <sys/types.h>
4625 /* Check that off_t can represent 2**63 - 1 correctly.
4626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 since some C++ compilers masquerading as C compilers
4628 incorrectly reject 9223372036854775807. */
4629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 && LARGE_OFF_T % 2147483647 == 1)
4641 if ac_fn_c_try_compile
"$LINENO"; then :
4642 ac_cv_sys_large_files
=1; break
4644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 ac_cv_sys_large_files
=unknown
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4650 $as_echo "$ac_cv_sys_large_files" >&6; }
4651 case $ac_cv_sys_large_files in #(
4654 cat >>confdefs.h
<<_ACEOF
4655 #define _LARGE_FILES $ac_cv_sys_large_files
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4666 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4667 if ${ac_cv_sys_largefile_source+:} false
; then :
4668 $as_echo_n "(cached) " >&6
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #include <sys/types.h> /* for off_t */
4678 int (*fp) (FILE *, off_t, int) = fseeko;
4679 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4684 if ac_fn_c_try_link
"$LINENO"; then :
4685 ac_cv_sys_largefile_source
=no
; break
4687 rm -f core conftest.err conftest.
$ac_objext \
4688 conftest
$ac_exeext conftest.
$ac_ext
4689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #define _LARGEFILE_SOURCE 1
4692 #include <sys/types.h> /* for off_t */
4697 int (*fp) (FILE *, off_t, int) = fseeko;
4698 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4703 if ac_fn_c_try_link
"$LINENO"; then :
4704 ac_cv_sys_largefile_source
=1; break
4706 rm -f core conftest.err conftest.
$ac_objext \
4707 conftest
$ac_exeext conftest.
$ac_ext
4708 ac_cv_sys_largefile_source
=unknown
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4713 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4714 case $ac_cv_sys_largefile_source in #(
4717 cat >>confdefs.h
<<_ACEOF
4718 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4724 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4725 # in glibc 2.1.3, but that breaks too many other things.
4726 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4727 if test $ac_cv_sys_largefile_source != unknown
; then
4729 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4734 for ac_header
in sys
/ioccom.h sys
/select.h sys
/sockio.h limits.h
4736 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4738 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4739 cat >>confdefs.h
<<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4747 for ac_header
in linux
/types.h
4749 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
4751 cat >>confdefs.h
<<_ACEOF
4752 #define HAVE_LINUX_TYPES_H 1
4759 for ac_header
in linux
/if_packet.h netpacket
/packet.h netpacket
/if_packet.h
4761 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4762 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4763 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4764 cat >>confdefs.h
<<_ACEOF
4765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772 for ac_header
in net
/pfvar.h
4774 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4775 #include <sys/socket.h>
4778 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4779 cat >>confdefs.h
<<_ACEOF
4780 #define HAVE_NET_PFVAR_H 1
4787 if test "$ac_cv_header_net_pfvar_h" = yes; then
4789 # Check for various PF actions.
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4792 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <sys/types.h>
4796 #include <sys/socket.h>
4798 #include <net/pfvar.h>
4802 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4807 if ac_fn_c_try_compile
"$LINENO"; then :
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 $as_echo "yes" >&6; }
4812 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 for ac_header
in netinet
/if_ether.h
4823 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4824 #include <sys/socket.h>
4826 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4827 cat >>confdefs.h
<<_ACEOF
4828 #define HAVE_NETINET_IF_ETHER_H 1
4835 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4837 # The simple test didn't work.
4838 # Do we need to include <net/if.h> first?
4839 # Unset ac_cv_header_netinet_if_ether_h so we don't
4840 # treat the previous failure as a cached value and
4841 # suppress the next test.
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4844 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4845 unset ac_cv_header_netinet_if_ether_h
4846 for ac_header
in netinet
/if_ether.h
4848 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4849 #include <sys/socket.h>
4850 #include <netinet/in.h>
4855 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4856 cat >>confdefs.h
<<_ACEOF
4857 #define HAVE_NETINET_IF_ETHER_H 1
4868 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4870 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4871 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4872 #include <sys/socket.h>
4873 #include <linux/if.h>
4876 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4877 cat >>confdefs.h
<<_ACEOF
4878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4888 if test "$GCC" = yes ; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4890 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4891 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4892 $as_echo_n "(cached) " >&6
4894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 * This generates a "duplicate case value" when fixincludes
4900 # include <sys/types.h>
4901 # include <sys/time.h>
4902 # include <sys/ioctl.h>
4903 # ifdef HAVE_SYS_IOCCOM_H
4904 # include <sys/ioccom.h>
4917 if ac_fn_c_try_compile
"$LINENO"; then :
4918 ac_cv_lbl_gcc_fixincludes
=yes
4920 ac_cv_lbl_gcc_fixincludes
=no
4922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4926 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4927 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4928 # Don't cache failure
4929 unset ac_cv_lbl_gcc_fixincludes
4930 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4934 for ac_func
in strerror strlcpy
4936 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4937 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4938 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4939 cat >>confdefs.h
<<_ACEOF
4940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4948 for ac_func
in vsnprintf snprintf
4950 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4951 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4952 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4953 cat >>confdefs.h
<<_ACEOF
4954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4962 if test $needsnprintf = yes; then
4963 case " $LIBOBJS " in
4964 *" snprintf.$ac_objext "* ) ;;
4965 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4972 for ac_func
in strtok_r
4974 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4975 if test "x$ac_cv_func_strtok_r" = xyes
; then :
4976 cat >>confdefs.h
<<_ACEOF
4977 #define HAVE_STRTOK_R 1
4985 if test $needstrtok_r = yes; then
4986 case " $LIBOBJS " in
4987 *" strtok_r.$ac_objext "* ) ;;
4988 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
4995 # Do this before checking for ether_hostton(), as it's a
4996 # "gethostbyname() -ish function".
4999 # Most operating systems have gethostbyname() in the default searched
5000 # libraries (i.e. libc):
5001 # Some OSes (eg. Solaris) place it in libnsl
5002 # Some strange OSes (SINIX) have it in libsocket:
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5004 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5005 if ${ac_cv_search_gethostbyname+:} false
; then :
5006 $as_echo_n "(cached) " >&6
5008 ac_func_search_save_LIBS
=$LIBS
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5018 char gethostbyname ();
5022 return gethostbyname ();
5027 for ac_lib
in '' nsl socket resolv
; do
5028 if test -z "$ac_lib"; then
5029 ac_res
="none required"
5032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5034 if ac_fn_c_try_link
"$LINENO"; then :
5035 ac_cv_search_gethostbyname
=$ac_res
5037 rm -f core conftest.err conftest.
$ac_objext \
5039 if ${ac_cv_search_gethostbyname+:} false
; then :
5043 if ${ac_cv_search_gethostbyname+:} false
; then :
5046 ac_cv_search_gethostbyname
=no
5049 LIBS
=$ac_func_search_save_LIBS
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5052 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5053 ac_res
=$ac_cv_search_gethostbyname
5054 if test "$ac_res" != no
; then :
5055 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5059 # Unfortunately libsocket sometimes depends on libnsl and
5060 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5061 if test "$ac_cv_search_gethostbyname" = "no"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5064 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5065 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 ac_check_lib_save_LIBS
=$LIBS
5069 LIBS
="-lsocket -lnsl $LIBS"
5070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5073 /* Override any GCC internal prototype to avoid an error.
5074 Use char because int might match the return type of a GCC
5075 builtin and then its argument prototype would still apply. */
5079 char gethostbyname ();
5083 return gethostbyname ();
5088 if ac_fn_c_try_link
"$LINENO"; then :
5089 ac_cv_lib_socket_gethostbyname
=yes
5091 ac_cv_lib_socket_gethostbyname
=no
5093 rm -f core conftest.err conftest.
$ac_objext \
5094 conftest
$ac_exeext conftest.
$ac_ext
5095 LIBS
=$ac_check_lib_save_LIBS
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5098 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5099 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
5100 LIBS
="-lsocket -lnsl $LIBS"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5105 $as_echo_n "checking for library containing socket... " >&6; }
5106 if ${ac_cv_search_socket+:} false
; then :
5107 $as_echo_n "(cached) " >&6
5109 ac_func_search_save_LIBS
=$LIBS
5110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5128 for ac_lib
in '' socket
; do
5129 if test -z "$ac_lib"; then
5130 ac_res
="none required"
5133 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5135 if ac_fn_c_try_link
"$LINENO"; then :
5136 ac_cv_search_socket
=$ac_res
5138 rm -f core conftest.err conftest.
$ac_objext \
5140 if ${ac_cv_search_socket+:} false
; then :
5144 if ${ac_cv_search_socket+:} false
; then :
5147 ac_cv_search_socket
=no
5150 LIBS
=$ac_func_search_save_LIBS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5153 $as_echo "$ac_cv_search_socket" >&6; }
5154 ac_res
=$ac_cv_search_socket
5155 if test "$ac_res" != no
; then :
5156 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5160 $as_echo_n "checking for socket in -lsocket... " >&6; }
5161 if ${ac_cv_lib_socket_socket+:} false
; then :
5162 $as_echo_n "(cached) " >&6
5164 ac_check_lib_save_LIBS
=$LIBS
5165 LIBS
="-lsocket -lnsl $LIBS"
5166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5169 /* Override any GCC internal prototype to avoid an error.
5170 Use char because int might match the return type of a GCC
5171 builtin and then its argument prototype would still apply. */
5184 if ac_fn_c_try_link
"$LINENO"; then :
5185 ac_cv_lib_socket_socket
=yes
5187 ac_cv_lib_socket_socket
=no
5189 rm -f core conftest.err conftest.
$ac_objext \
5190 conftest
$ac_exeext conftest.
$ac_ext
5191 LIBS
=$ac_check_lib_save_LIBS
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5194 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5195 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5196 LIBS
="-lsocket -lnsl $LIBS"
5201 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5203 $as_echo_n "checking for library containing putmsg... " >&6; }
5204 if ${ac_cv_search_putmsg+:} false
; then :
5205 $as_echo_n "(cached) " >&6
5207 ac_func_search_save_LIBS
=$LIBS
5208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5211 /* Override any GCC internal prototype to avoid an error.
5212 Use char because int might match the return type of a GCC
5213 builtin and then its argument prototype would still apply. */
5226 for ac_lib
in '' str
; do
5227 if test -z "$ac_lib"; then
5228 ac_res
="none required"
5231 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5233 if ac_fn_c_try_link
"$LINENO"; then :
5234 ac_cv_search_putmsg
=$ac_res
5236 rm -f core conftest.err conftest.
$ac_objext \
5238 if ${ac_cv_search_putmsg+:} false
; then :
5242 if ${ac_cv_search_putmsg+:} false
; then :
5245 ac_cv_search_putmsg
=no
5248 LIBS
=$ac_func_search_save_LIBS
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5251 $as_echo "$ac_cv_search_putmsg" >&6; }
5252 ac_res
=$ac_cv_search_putmsg
5253 if test "$ac_res" != no
; then :
5254 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5261 # You are in a twisty little maze of UN*Xes, all different.
5262 # Some might not have ether_hostton().
5263 # Some might have it, but not declare it in any header file.
5264 # Some might have it, but declare it in <netinet/if_ether.h>.
5265 # Some might have it, but declare it in <netinet/ether.h>
5266 # (And some might have it but document it as something declared in
5267 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5269 # Before you is a C compiler.
5271 for ac_func
in ether_hostton
5273 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5274 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5275 cat >>confdefs.h
<<_ACEOF
5276 #define HAVE_ETHER_HOSTTON 1
5282 if test "$ac_cv_func_ether_hostton" = yes; then
5284 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5286 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5288 # Yes. Does it declare ether_hostton()?
5290 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5291 #include <sys/types.h>
5292 #include <sys/socket.h>
5293 #include <netinet/in.h>
5294 #include <arpa/inet.h>
5298 #include <netinet/if_ether.h>
5301 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5304 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5313 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5315 # No, how about <netinet/ether.h>, as on Linux?
5317 for ac_header
in netinet
/ether.h
5319 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5320 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
5321 cat >>confdefs.h
<<_ACEOF
5322 #define HAVE_NETINET_ETHER_H 1
5329 if test "$ac_cv_header_netinet_ether_h" = yes; then
5331 # We have it - does it declare ether_hostton()?
5332 # Unset ac_cv_have_decl_ether_hostton so we don't
5333 # treat the previous failure as a cached value and
5334 # suppress the next test.
5336 unset ac_cv_have_decl_ether_hostton
5337 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5338 #include <netinet/ether.h>
5341 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5344 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5352 # Is ether_hostton() declared?
5354 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5356 # No, we'll have to declare it ourselves.
5357 # Do we have "struct ether_addr"?
5359 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5360 #include <sys/types.h>
5361 #include <sys/socket.h>
5362 #include <netinet/in.h>
5363 #include <arpa/inet.h>
5367 #include <netinet/if_ether.h>
5370 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5372 cat >>confdefs.h
<<_ACEOF
5373 #define HAVE_STRUCT_ETHER_ADDR 1
5380 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5384 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5390 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5391 # Check whether --enable-protochain was given.
5392 if test "${enable_protochain+set}" = set; then :
5393 enableval
=$enable_protochain;
5396 case "x$enable_protochain" in
5397 xyes
) enable_protochain
=enabled
;;
5398 xno
) enable_protochain
=disabled
;;
5399 x
) enable_protochain
=enabled
;;
5402 if test "$enable_protochain" = "disabled"; then
5404 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5408 $as_echo "${enable_protochain}" >&6; }
5411 # valgrindtest directly uses the native capture mechanism, but
5412 # only tests with BPF and PF_PACKET sockets; only enable it if
5413 # we have BPF or PF_PACKET sockets.
5418 # SITA support is mutually exclusive with native capture support;
5419 # "--with-sita" selects SITA support.
5422 # Check whether --with-sita was given.
5423 if test "${with_sita+set}" = set; then :
5425 if test ! "x$withval" = "xno" ; then
5427 $as_echo "#define SITA 1" >>confdefs.h
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5430 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5436 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5437 as_fn_error $?
"pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5440 # Check whether --with-pcap was given.
5441 if test "${with_pcap+set}" = set; then :
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5446 $as_echo_n "checking packet capture type... " >&6; }
5447 if test ! -z "$with_pcap" ; then
5449 elif test -r /dev
/bpf
-o -h /dev
/bpf
; then
5451 # Cloning BPF device.
5455 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5459 # We have BPF, so build valgrindtest with "make test".
5461 VALGRINDTEST
=valgrindtest
5462 elif test -r /dev
/bpf0
; then
5466 # We have BPF, so build valgrindtest with "make test".
5468 VALGRINDTEST
=valgrindtest
5469 elif test -r /usr
/include
/net
/pfilt.h
; then
5471 elif test -r /dev
/enet
; then
5473 elif test -r /dev
/nit
; then
5475 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5477 elif test -r /usr
/include
/linux
/socket.h
; then
5481 # XXX - this won't work with older kernels that have SOCK_PACKET
5482 # sockets but not PF_PACKET sockets.
5484 VALGRINDTEST
=valgrindtest
5485 elif test -r /usr
/include
/net
/raw.h
; then
5487 elif test -r /usr
/include
/odmi.h
; then
5489 # On AIX, the BPF devices might not yet be present - they're
5490 # created the first time libpcap runs after booting.
5491 # We check for odmi.h instead.
5494 elif test -c /dev
/bpf0
; then # check again in case not readable
5498 # We have BPF, so build valgrindtest with "make test".
5500 VALGRINDTEST
=valgrindtest
5501 elif test -r /usr
/include
/sys
/dlpi.h
; then
5503 elif test -c /dev
/enet
; then # check again in case not readable
5505 elif test -c /dev
/nit
; then # check again in case not readable
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5511 $as_echo "$V_PCAP" >&6; }
5515 # Do capture-mechanism-dependent tests.
5520 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5525 # Checks for some header files.
5527 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5529 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5530 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5531 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5532 cat >>confdefs.h
<<_ACEOF
5533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5542 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5543 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5544 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5545 # private version also existed, which did not have the same APIs.
5546 # Due to a gcc bug, the default search path for 32-bit libraries does
5547 # not include /lib, we add it explicitly here.
5548 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5549 # Also, due to the bug above applications that link to libpcap with
5550 # libdlpi will have to add "-L/lib" option to "configure".
5552 saved_ldflags
=$LDFLAGS
5553 LDFLAGS
="$LIBS -L/lib"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5555 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5556 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5557 $as_echo_n "(cached) " >&6
5559 ac_check_lib_save_LIBS
=$LIBS
5561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5564 /* Override any GCC internal prototype to avoid an error.
5565 Use char because int might match the return type of a GCC
5566 builtin and then its argument prototype would still apply. */
5574 return dlpi_walk ();
5579 if ac_fn_c_try_link
"$LINENO"; then :
5580 ac_cv_lib_dlpi_dlpi_walk
=yes
5582 ac_cv_lib_dlpi_dlpi_walk
=no
5584 rm -f core conftest.err conftest.
$ac_objext \
5585 conftest
$ac_exeext conftest.
$ac_ext
5586 LIBS
=$ac_check_lib_save_LIBS
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5589 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5590 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5595 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5602 LDFLAGS
=$saved_ldflags
5605 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5609 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5610 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5611 $as_echo_n "(cached) " >&6
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 #include <sys/types.h>
5617 #include <sys/time.h>
5618 #include <sys/dlpi.h>
5623 int i = DL_PROMISC_PHYS;
5628 if ac_fn_c_try_compile
"$LINENO"; then :
5629 ac_cv_sys_dlpi_usable
=yes
5631 ac_cv_sys_dlpi_usable
=no
5633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5637 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5638 if test $ac_cv_sys_dlpi_usable = no
; then
5639 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5643 # Check whether we have a /dev/dlpi device or have multiple devices.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5646 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5647 if test -c /dev
/dlpi
; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5651 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5658 $as_echo_n "checking for $dir directory... " >&6; }
5659 if test -d $dir ; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5663 cat >>confdefs.h
<<_ACEOF
5664 #define PCAP_DEV_PREFIX "$dir"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5674 # This check is for Solaris with DLPI support for passive modes.
5675 # See dlpi(7P) for more details.
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5678 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5679 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5685 # include <sys/types.h>
5686 # include <sys/dlpi.h>
5690 u_int i = sizeof(dl_passive_req_t)
5695 if ac_fn_c_try_compile
"$LINENO"; then :
5696 ac_cv_lbl_has_dl_passive_req_t
=yes
5698 ac_cv_lbl_has_dl_passive_req_t
=no
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5704 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5705 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5707 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5714 # Do we have the wireless extensions?
5716 for ac_header
in linux
/wireless.h
5718 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5719 #include <sys/socket.h>
5720 #include <linux/if.h>
5721 #include <linux/types.h>
5724 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5725 cat >>confdefs.h
<<_ACEOF
5726 #define HAVE_LINUX_WIRELESS_H 1
5738 # Check whether --with-libnl was given.
5739 if test "${with_libnl+set}" = set; then :
5740 withval
=$with_libnl; with_libnl
=$withval
5744 if test x
$with_libnl != xno
; then
5747 incdir
=-I/usr
/include
/libnl3
5749 if test x
$withval != x
; then
5750 libnldir
=-L${withval}/lib
/.libs
5751 incdir
=-I${withval}/include
5755 # Try libnl 3.x first.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5758 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5759 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5760 $as_echo_n "(cached) " >&6
5762 ac_check_lib_save_LIBS
=$LIBS
5763 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5767 /* Override any GCC internal prototype to avoid an error.
5768 Use char because int might match the return type of a GCC
5769 builtin and then its argument prototype would still apply. */
5773 char nl_socket_alloc ();
5777 return nl_socket_alloc ();
5782 if ac_fn_c_try_link
"$LINENO"; then :
5783 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5785 ac_cv_lib_nl_3_nl_socket_alloc
=no
5787 rm -f core conftest.err conftest.
$ac_objext \
5788 conftest
$ac_exeext conftest.
$ac_ext
5789 LIBS
=$ac_check_lib_save_LIBS
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5792 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5793 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5796 # Yes, we have libnl 3.x.
5798 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5800 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5803 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5806 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5809 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5811 V_INCLS
="$V_INCLS ${incdir}"
5817 if test x
$have_any_nl = xno
; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5822 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5823 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5824 $as_echo_n "(cached) " >&6
5826 ac_check_lib_save_LIBS
=$LIBS
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5831 /* Override any GCC internal prototype to avoid an error.
5832 Use char because int might match the return type of a GCC
5833 builtin and then its argument prototype would still apply. */
5837 char nl_socket_alloc ();
5841 return nl_socket_alloc ();
5846 if ac_fn_c_try_link
"$LINENO"; then :
5847 ac_cv_lib_nl_nl_socket_alloc
=yes
5849 ac_cv_lib_nl_nl_socket_alloc
=no
5851 rm -f core conftest.err conftest.
$ac_objext \
5852 conftest
$ac_exeext conftest.
$ac_ext
5853 LIBS
=$ac_check_lib_save_LIBS
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5856 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5857 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
5860 # Yes, we have libnl 2.x.
5862 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
5864 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5867 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5870 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5873 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5881 if test x
$have_any_nl = xno
; then
5883 # No, we don't; do we have libnl 1.x?
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5886 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5887 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
5888 $as_echo_n "(cached) " >&6
5890 ac_check_lib_save_LIBS
=$LIBS
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5895 /* Override any GCC internal prototype to avoid an error.
5896 Use char because int might match the return type of a GCC
5897 builtin and then its argument prototype would still apply. */
5901 char nl_handle_alloc ();
5905 return nl_handle_alloc ();
5910 if ac_fn_c_try_link
"$LINENO"; then :
5911 ac_cv_lib_nl_nl_handle_alloc
=yes
5913 ac_cv_lib_nl_nl_handle_alloc
=no
5915 rm -f core conftest.err conftest.
$ac_objext \
5916 conftest
$ac_exeext conftest.
$ac_ext
5917 LIBS
=$ac_check_lib_save_LIBS
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5920 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5921 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
5926 LIBS
="${libnldir} -lnl $LIBS"
5928 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5936 if test x
$have_any_nl = xno
; then
5938 # No, we don't have libnl at all.
5940 if test x
$with_libnl = xyes
; then
5941 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
5946 for ac_header
in linux
/ethtool.h
5948 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5949 $ac_includes_default
5950 #include <linux/types.h>
5953 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
5954 cat >>confdefs.h
<<_ACEOF
5955 #define HAVE_LINUX_ETHTOOL_H 1
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5963 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5964 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
5965 $as_echo_n "(cached) " >&6
5967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 # include <linux/if_packet.h>
5974 struct tpacket_stats stats
5979 if ac_fn_c_try_compile
"$LINENO"; then :
5980 ac_cv_lbl_tpacket_stats
=yes
5982 ac_cv_lbl_tpacket_stats
=no
5984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5988 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5989 if test $ac_cv_lbl_tpacket_stats = yes; then
5991 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5995 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5996 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
5997 $as_echo_n "(cached) " >&6
5999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 # include <sys/types.h>
6003 # include <linux/if_packet.h>
6007 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6012 if ac_fn_c_try_compile
"$LINENO"; then :
6013 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
6015 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
6017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6021 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6022 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6023 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
6026 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
6033 # Check whether we have the *BSD-style ioctls.
6035 for ac_header
in net
/if_media.h
6037 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
6038 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
6039 cat >>confdefs.h
<<_ACEOF
6040 #define HAVE_NET_IF_MEDIA_H 1
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
6049 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
6050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <sys/socket.h>
6053 #include <sys/ioctl.h>
6055 #include <net/bpf.h>
6059 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
6064 if ac_fn_c_try_compile
"$LINENO"; then :
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6067 $as_echo "yes" >&6; }
6069 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6079 # Check whether we have struct BPF_TIMEVAL.
6081 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
6082 #include <sys/types.h>
6083 #include <sys/ioctl.h>
6084 #ifdef HAVE_SYS_IOCCOM_H
6085 #include <sys/ioccom.h>
6087 #include <net/bpf.h>
6090 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
6092 cat >>confdefs.h
<<_ACEOF
6093 #define HAVE_STRUCT_BPF_TIMEVAL 1
6103 # --with-pcap=dag is the only way to get here, and it means
6104 # "DAG support but nothing else"
6106 V_DEFS
="$V_DEFS -DDAG_ONLY"
6112 # --with-pcap=septel is the only way to get here, and it means
6113 # "Septel support but nothing else"
6115 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6121 # --with-pcap=snf is the only way to get here, and it means
6122 # "SNF support but nothing else"
6124 V_DEFS
="$V_DEFS -DSNF_ONLY"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
6130 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
6132 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6136 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
6140 if test "$V_PCAP" != null
6142 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
6143 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
6146 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
6147 # as well, just in case some platform is really weird.
6149 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
6150 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
6153 # We have the header, so we use "getifaddrs()" to
6154 # get the list of interfaces.
6156 V_FINDALLDEVS
=fad-getad.c
6161 # We don't have the header - give up.
6162 # XXX - we could also fall back on some other
6163 # mechanism, but, for now, this'll catch this
6164 # problem so that we can at least try to figure
6165 # out something to do on systems with "getifaddrs()"
6166 # but without "ifaddrs.h", if there is something
6167 # we can do on those systems.
6169 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
6178 # Well, we don't have "getifaddrs()", so we have to use
6179 # some other mechanism; determine what that mechanism is.
6181 # The first thing we use is the type of capture mechanism,
6182 # which is somewhat of a proxy for the OS we're using.
6188 # This might be Solaris 8 or later, with
6189 # SIOCGLIFCONF, or it might be some other OS
6190 # or some older version of Solaris, with
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6194 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6195 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6196 $as_echo_n "(cached) " >&6
6198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 #include <sys/param.h>
6201 #include <sys/file.h>
6202 #include <sys/ioctl.h>
6203 #include <sys/socket.h>
6204 #include <sys/sockio.h>
6208 ioctl(0, SIOCGLIFCONF, (char *)0);
6213 if ac_fn_c_try_compile
"$LINENO"; then :
6214 ac_cv_lbl_have_siocglifconf
=yes
6216 ac_cv_lbl_have_siocglifconf
=no
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6222 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6223 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6224 V_FINDALLDEVS
=fad-glifc.c
6226 V_FINDALLDEVS
=fad-gifc.c
6232 # Assume we just have SIOCGIFCONF.
6233 # (XXX - on at least later Linux kernels, there's
6234 # another mechanism, and we should be using that
6237 V_FINDALLDEVS
=fad-gifc.c
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6248 $as_echo_n "checking for socklen_t... " >&6; }
6249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 #include <sys/types.h>
6253 #include <sys/socket.h>
6263 if ac_fn_c_try_compile
"$LINENO"; then :
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 if test "x$have_socklen_t" = "xyes"; then
6271 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6275 $as_echo "$have_socklen_t" >&6; }
6277 # Check whether --enable-ipv6 was given.
6278 if test "${enable_ipv6+set}" = set; then :
6279 enableval
=$enable_ipv6;
6281 enable_ipv6
=ifavailable
6284 if test "$enable_ipv6" != "no"; then
6285 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6286 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6289 $as_echo "#define INET6 1" >>confdefs.h
6294 if test "$enable_ipv6" != "ifavailable"; then
6295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6298 See \`config.log' for more details" "$LINENO" 5; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6306 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6307 # Check whether --enable-optimizer-dbg was given.
6308 if test "${enable_optimizer_dbg+set}" = set; then :
6309 enableval
=$enable_optimizer_dbg;
6312 if test "$enable_optimizer_dbg" = "yes"; then
6314 $as_echo "#define BDEBUG 1" >>confdefs.h
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6318 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6321 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6322 # Check whether --enable-yydebug was given.
6323 if test "${enable_yydebug+set}" = set; then :
6324 enableval
=$enable_yydebug;
6327 if test "$enable_yydebug" = "yes"; then
6329 $as_echo "#define YYDEBUG 1" >>confdefs.h
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6333 $as_echo "${enable_yydebug-no}" >&6; }
6335 # Check for Endace DAG card support.
6337 # Check whether --with-dag was given.
6338 if test "${with_dag+set}" = set; then :
6340 if test "$withval" = no
6342 # User doesn't want DAG support.
6344 elif test "$withval" = yes
6346 # User wants DAG support but hasn't specified a directory.
6349 # User wants DAG support and has specified a directory, so use the provided value.
6356 if test "$V_PCAP" = dag
; then
6357 # User requested DAG-only libpcap, so we'd better have
6360 elif test "xxx_only" = yes; then
6361 # User requested something-else-only pcap, so they don't
6366 # Use DAG API if present, otherwise don't
6375 # Check whether --with-dag-includes was given.
6376 if test "${with_dag_includes+set}" = set; then :
6377 withval
=$with_dag_includes;
6378 # User wants DAG support and has specified a header directory, so use the provided value.
6380 dag_include_dir
=$withval
6386 # Check whether --with-dag-libraries was given.
6387 if test "${with_dag_libraries+set}" = set; then :
6388 withval
=$with_dag_libraries;
6389 # User wants DAG support and has specified a library directory, so use the provided value.
6391 dag_lib_dir
=$withval
6396 ac_cv_lbl_dag_api
=no
6397 if test "$want_dag" != no
; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6400 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6402 # If necessary, set default paths for DAG API headers and libraries.
6403 if test -z "$dag_root"; then
6407 if test -z "$dag_include_dir"; then
6408 dag_include_dir
="$dag_root/include"
6411 if test -z "$dag_lib_dir"; then
6412 dag_lib_dir
="$dag_root/lib"
6415 if test -z "$dag_tools_dir"; then
6416 dag_tools_dir
="$dag_root/tools"
6419 if test -r $dag_include_dir/dagapi.h
; then
6420 ac_cv_lbl_dag_api
=yes
6423 if test "$ac_cv_lbl_dag_api" = yes; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6425 $as_echo "yes ($dag_include_dir)" >&6; }
6427 V_INCLS
="$V_INCLS -I$dag_include_dir"
6429 if test $V_PCAP != dag
; then
6430 SSRC
="$SSRC pcap-dag.c"
6433 # See if we can find a general version string.
6434 # Don't need to save and restore LIBS to prevent -ldag being
6435 # included if there's a found-action (arg 3).
6436 saved_ldflags
=$LDFLAGS
6437 LDFLAGS
="-L$dag_lib_dir"
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6439 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6440 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6443 ac_check_lib_save_LIBS
=$LIBS
6445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6448 /* Override any GCC internal prototype to avoid an error.
6449 Use char because int might match the return type of a GCC
6450 builtin and then its argument prototype would still apply. */
6454 char dag_attach_stream ();
6458 return dag_attach_stream ();
6463 if ac_fn_c_try_link
"$LINENO"; then :
6464 ac_cv_lib_dag_dag_attach_stream
=yes
6466 ac_cv_lib_dag_dag_attach_stream
=no
6468 rm -f core conftest.err conftest.
$ac_objext \
6469 conftest
$ac_exeext conftest.
$ac_ext
6470 LIBS
=$ac_check_lib_save_LIBS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6473 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6474 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6481 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6482 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6483 $as_echo_n "(cached) " >&6
6485 ac_check_lib_save_LIBS
=$LIBS
6487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6490 /* Override any GCC internal prototype to avoid an error.
6491 Use char because int might match the return type of a GCC
6492 builtin and then its argument prototype would still apply. */
6496 char dag_get_erf_types ();
6500 return dag_get_erf_types ();
6505 if ac_fn_c_try_link
"$LINENO"; then :
6506 ac_cv_lib_dag_dag_get_erf_types
=yes
6508 ac_cv_lib_dag_dag_get_erf_types
=no
6510 rm -f core conftest.err conftest.
$ac_objext \
6511 conftest
$ac_exeext conftest.
$ac_ext
6512 LIBS
=$ac_check_lib_save_LIBS
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6515 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6516 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6519 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6524 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6525 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
6526 $as_echo_n "(cached) " >&6
6528 ac_check_lib_save_LIBS
=$LIBS
6530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6533 /* Override any GCC internal prototype to avoid an error.
6534 Use char because int might match the return type of a GCC
6535 builtin and then its argument prototype would still apply. */
6539 char dag_get_stream_erf_types ();
6543 return dag_get_stream_erf_types ();
6548 if ac_fn_c_try_link
"$LINENO"; then :
6549 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6551 ac_cv_lib_dag_dag_get_stream_erf_types
=no
6553 rm -f core conftest.err conftest.
$ac_objext \
6554 conftest
$ac_exeext conftest.
$ac_ext
6555 LIBS
=$ac_check_lib_save_LIBS
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6558 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6559 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6562 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6567 LDFLAGS
=$saved_ldflags
6569 if test "$dag_streams" = 1; then
6571 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6574 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6577 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6578 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6579 $as_echo_n "(cached) " >&6
6581 ac_check_lib_save_LIBS
=$LIBS
6583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6586 /* Override any GCC internal prototype to avoid an error.
6587 Use char because int might match the return type of a GCC
6588 builtin and then its argument prototype would still apply. */
6592 char vdag_set_device_info ();
6596 return vdag_set_device_info ();
6601 if ac_fn_c_try_link
"$LINENO"; then :
6602 ac_cv_lib_vdag_vdag_set_device_info
=yes
6604 ac_cv_lib_vdag_vdag_set_device_info
=no
6606 rm -f core conftest.err conftest.
$ac_objext \
6607 conftest
$ac_exeext conftest.
$ac_ext
6608 LIBS
=$ac_check_lib_save_LIBS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6611 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6612 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6613 ac_dag_have_vdag
="1"
6615 ac_dag_have_vdag
="0"
6618 if test "$ac_dag_have_vdag" = 1; then
6620 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6622 LIBS
="$LIBS -lpthread"
6627 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6633 if test "$V_PCAP" = dag
; then
6634 # User requested "dag" capture type but we couldn't
6635 # find the DAG API support.
6636 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
6639 if test "$want_dag" = yes; then
6640 # User wanted DAG support but we couldn't find it.
6641 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
6647 # Check whether --with-septel was given.
6648 if test "${with_septel+set}" = set; then :
6649 withval
=$with_septel;
6650 if test "$withval" = no
6653 elif test "$withval" = yes
6659 septel_root
=$withval
6664 if test "$V_PCAP" = septel
; then
6665 # User requested Septel-only libpcap, so we'd better have
6668 elif test "xxx_only" = yes; then
6669 # User requested something-else-only pcap, so they don't
6670 # want Septel support.
6674 # Use Septel API if present, otherwise don't
6676 want_septel
=ifpresent
6682 ac_cv_lbl_septel_api
=no
6683 if test "$with_septel" != no
; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6686 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6688 # If necessary, set default paths for Septel API headers and libraries.
6689 if test -z "$septel_root"; then
6690 septel_root
=$srcdir/..
/septel
6693 septel_tools_dir
="$septel_root"
6694 septel_include_dir
="$septel_root/INC"
6696 if test -r "$septel_include_dir/msg.h"; then
6697 ac_cv_lbl_septel_api
=yes
6700 if test "$ac_cv_lbl_septel_api" = yes; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6702 $as_echo "yes ($septel_include_dir)" >&6; }
6704 V_INCLS
="$V_INCLS -I$septel_include_dir"
6705 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"
6706 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"
6708 if test "$V_PCAP" != septel
; then
6709 SSRC
="$SSRC pcap-septel.c"
6713 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6719 if test "$V_PCAP" = septel
; then
6720 # User requested "septel" capture type but
6721 # we couldn't find the Septel API support.
6722 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
6725 if test "$want_septel" = yes; then
6726 # User wanted Septel support but we couldn't find it.
6727 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
6732 # Check for Myricom SNF support.
6734 # Check whether --with-snf was given.
6735 if test "${with_snf+set}" = set; then :
6737 if test "$withval" = no
6739 # User explicitly doesn't want SNF
6741 elif test "$withval" = yes
6743 # User wants SNF support but hasn't specified a directory.
6746 # User wants SNF support with a specified directory.
6753 if test "$V_PCAP" = snf
; then
6754 # User requested Sniffer-only libpcap, so we'd better have
6757 elif test "xxx_only" = yes; then
6758 # User requested something-else-only pcap, so they don't
6763 # Use Sniffer API if present, otherwise don't
6772 # Check whether --with-snf-includes was given.
6773 if test "${with_snf_includes+set}" = set; then :
6774 withval
=$with_snf_includes;
6775 # User wants SNF with specific header directory
6777 snf_include_dir
=$withval
6783 # Check whether --with-snf-libraries was given.
6784 if test "${with_snf_libraries+set}" = set; then :
6785 withval
=$with_snf_libraries;
6786 # User wants SNF with specific lib directory
6788 snf_lib_dir
=$withval
6793 ac_cv_lbl_snf_api
=no
6794 if test "$with_snf" != no
; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6797 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6799 # If necessary, set default paths for Sniffer headers and libraries.
6800 if test -z "$snf_root"; then
6804 if test -z "$snf_include_dir"; then
6805 snf_include_dir
="$snf_root/include"
6808 if test -z "$snf_lib_dir"; then
6809 snf_lib_dir
="$snf_root/lib"
6812 if test -f "$snf_include_dir/snf.h"; then
6813 # We found a header; make sure we can link with the library
6814 saved_ldflags
=$LDFLAGS
6815 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6817 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6818 if ${ac_cv_lib_snf_snf_init+:} false
; then :
6819 $as_echo_n "(cached) " >&6
6821 ac_check_lib_save_LIBS
=$LIBS
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6826 /* Override any GCC internal prototype to avoid an error.
6827 Use char because int might match the return type of a GCC
6828 builtin and then its argument prototype would still apply. */
6841 if ac_fn_c_try_link
"$LINENO"; then :
6842 ac_cv_lib_snf_snf_init
=yes
6844 ac_cv_lib_snf_snf_init
=no
6846 rm -f core conftest.err conftest.
$ac_objext \
6847 conftest
$ac_exeext conftest.
$ac_ext
6848 LIBS
=$ac_check_lib_save_LIBS
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6851 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6852 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
6853 ac_cv_lbl_snf_api
="yes"
6856 LDFLAGS
="$saved_ldflags"
6857 if test "$ac_cv_lbl_snf_api" = no
; then
6858 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
6862 if test "$ac_cv_lbl_snf_api" = yes; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
6864 $as_echo "yes ($snf_root)" >&6; }
6866 V_INCLS
="$V_INCLS -I$snf_include_dir"
6868 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6870 if test "$V_PCAP" != snf
; then
6871 SSRC
="$SSRC pcap-snf.c"
6875 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6881 if test "$want_snf" = yes; then
6882 # User requested "snf" capture type but
6883 # we couldn't find the Sniffer API support.
6884 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
6887 if test "$want_snf" = yes; then
6888 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
6893 # Check for Riverbed TurboCap support.
6895 # Check whether --with-turbocap was given.
6896 if test "${with_turbocap+set}" = set; then :
6897 withval
=$with_turbocap;
6898 if test "$withval" = no
6900 # User explicitly doesn't want TurboCap
6902 elif test "$withval" = yes
6904 # User wants TurboCap support but hasn't specified a directory.
6907 # User wants TurboCap support with a specified directory.
6909 turbocap_root
=$withval
6914 if test "xxx_only" = yes; then
6915 # User requested something-else-only pcap, so they don't
6916 # want TurboCap support.
6920 # Use TurboCap API if present, otherwise don't
6922 want_turbocap
=ifpresent
6928 ac_cv_lbl_turbocap_api
=no
6929 if test "$want_turbocap" != no
; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
6932 $as_echo_n "checking whether TurboCap is supported... " >&6; }
6934 save_CFLAGS
="$CFLAGS"
6936 if test ! -z "$turbocap_root"; then
6937 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
6938 TURBOCAP_LIBS
="-L$turbocap_root/lib"
6939 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
6942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6951 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
6953 (void)TcInstanceCreateByName("foo", &i);
6959 if ac_fn_c_try_compile
"$LINENO"; then :
6960 ac_cv_lbl_turbocap_api
=yes
6962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6964 CFLAGS
="$save_CFLAGS"
6965 if test $ac_cv_lbl_turbocap_api = yes; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6967 $as_echo "yes" >&6; }
6969 SSRC
="$SSRC pcap-tc.c"
6970 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
6971 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
6974 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6980 if test "$want_turbocap" = yes; then
6981 # User wanted Turbo support but we couldn't find it.
6982 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
6990 for ac_prog
in flex
lex
6992 # Extract the first word of "$ac_prog", so it can be a program name with args.
6993 set dummy
$ac_prog; ac_word
=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_LEX+:} false
; then :
6997 $as_echo_n "(cached) " >&6
6999 if test -n "$LEX"; then
7000 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
7002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir
=.
7007 for ac_exec_ext
in '' $ac_executable_extensions; do
7008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_LEX
="$ac_prog"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 if test -n "$LEX"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7022 $as_echo "$LEX" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7029 test -n "$LEX" && break
7031 test -n "$LEX" || LEX
=":"
7033 if test "x$LEX" != "x:"; then
7034 cat >conftest.l
<<_ACEOF
7040 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7041 yyless ((input () != 0)); }
7042 f { unput (yytext[0]); }
7043 . { BEGIN INITIAL; }
7045 #ifdef YYTEXT_POINTER
7046 extern char *yytext;
7051 return ! yylex () + ! yywrap ();
7054 { { ac_try
="$LEX conftest.l"
7056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7060 $as_echo "$ac_try_echo"; } >&5
7061 (eval "$LEX conftest.l") 2>&5
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; }
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
7066 $as_echo_n "checking lex output file root... " >&6; }
7067 if ${ac_cv_prog_lex_root+:} false; then :
7068 $as_echo_n "(cached) " >&6
7071 if test -f lex.yy.c; then
7072 ac_cv_prog_lex_root=lex.yy
7073 elif test -f lexyy.c; then
7074 ac_cv_prog_lex_root=lexyy
7076 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7080 $as_echo "$ac_cv_prog_lex_root" >&6; }
7081 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7083 if test -z "${LEXLIB+set}"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
7085 $as_echo_n "checking lex library... " >&6; }
7086 if ${ac_cv_lib_lex+:} false; then :
7087 $as_echo_n "(cached) " >&6
7091 ac_cv_lib_lex='none needed'
7092 for ac_lib in '' -lfl -ll; do
7093 LIBS="$ac_lib $ac_save_LIBS"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 `cat $LEX_OUTPUT_ROOT.c
`
7098 if ac_fn_c_try_link "$LINENO"; then :
7099 ac_cv_lib_lex=$ac_lib
7101 rm -f core conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103 test "$ac_cv_lib_lex" != 'none needed' && break
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7109 $as_echo "$ac_cv_lib_lex" >&6; }
7110 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7115 $as_echo_n "checking whether yytext is a pointer... " >&6; }
7116 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 # POSIX says lex can declare yytext either as a pointer or an array; the
7120 # default is implementation-dependent. Figure out which it is, since
7121 # not all implementations provide the %pointer and %array declarations.
7122 ac_cv_prog_lex_yytext_pointer=no
7124 LIBS="$LEXLIB $ac_save_LIBS"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7128 #define YYTEXT_POINTER 1
7129 `cat $LEX_OUTPUT_ROOT.c
`
7131 if ac_fn_c_try_link "$LINENO"; then :
7132 ac_cv_prog_lex_yytext_pointer=yes
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7140 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
7141 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7143 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
7146 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7149 if test "$LEX" = ":"; then
7150 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
7154 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
7155 # and supports processing our scanner.l.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
7158 $as_echo_n "checking for capable lex... " >&6; }
7159 if ${tcpdump_cv_capable_lex+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
7163 tcpdump_cv_capable_lex=yes
7165 tcpdump_cv_capable_lex=insufficient
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
7169 $as_echo "$tcpdump_cv_capable_lex" >&6; }
7170 if test $tcpdump_cv_capable_lex = insufficient ; then
7171 as_fn_error $? "$LEX is insufficient to compile libpcap.
7172 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
7176 # Look for yacc/bison/byacc.
7178 for ac_prog in 'bison -y' byacc
7180 # Extract the first word of "$ac_prog", so it can be a program name with args.
7181 set dummy $ac_prog; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_YACC+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$YACC"; then
7188 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_YACC="$ac_prog"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 YACC=$ac_cv_prog_YACC
7208 if test -n "$YACC"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7210 $as_echo "$YACC" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7217 test -n "$YACC" && break
7219 test -n "$YACC" || YACC="yacc"
7223 # Make sure it supports the -p flag and supports processing our
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7227 $as_echo_n "checking for capable yacc/bison... " >&6; }
7228 if ${tcpdump_cv_capable_yacc+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7232 tcpdump_cv_capable_yacc=yes
7234 tcpdump_cv_capable_yacc=insufficient
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7238 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7239 if test $tcpdump_cv_capable_yacc = insufficient ; then
7240 as_fn_error $? "$YACC is insufficient to compile libpcap.
7241 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7245 # Assume, by default, no support for shared libraries and V7/BSD convention
7246 # for man pages (file formats in section 5, miscellaneous info in section 7).
7247 # Individual cases can override this.
7256 $as_echo "#define _SUN 1" >>confdefs.h
7260 # AIX makes it fun to build shared and static libraries,
7261 # because they're *both* ".a" archive libraries. We
7262 # build the static library for the benefit of the traditional
7263 # scheme of building libpcap and tcpdump in subdirectories of
7264 # the same directory, with tcpdump statically linked with the
7265 # libpcap in question, but we also build a shared library as
7266 # "libpcap.shareda" and install *it*, rather than the static
7267 # library, as "libpcap.a".
7275 # If we're using DLPI, applications will need to
7276 # use /lib/pse.exp if present, as we use the
7279 pseexe="/lib/pse.exp"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7281 $as_echo_n "checking for $pseexe... " >&6; }
7282 if test -f $pseexe ; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7284 $as_echo "yes" >&6; }
7291 # If we're using BPF, we need "-lodm" and "-lcfg", as
7292 # we use them to load the BPF module.
7301 V_CCOPT="$V_CCOPT -fno-common"
7302 # Check whether --enable-universal was given.
7303 if test "${enable_universal+set}" = set; then :
7304 enableval=$enable_universal;
7307 if test "$enable_universal" != "no"; then
7312 # Pre-Tiger. Build only for 32-bit PowerPC; no
7313 # need for any special compiler or linker flags.
7319 # Tiger, prior to Intel support. Build for 32-bit
7320 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7321 # first. (I'm guessing that's what Apple does.)
7323 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7324 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7329 # Tiger, subsequent to Intel support but prior to
7330 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7331 # PowerPC, and x86, with 32-bit PowerPC first.
7332 # (I'm guessing that's what Apple does.)
7334 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7335 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7340 # All other Tiger, so subsequent to x86-64
7341 # support. Build for 32-bit PowerPC, 64-bit
7342 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7343 # first. (I'm guessing that's what Apple does.)
7345 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7346 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7351 # Leopard. Build for 32-bit PowerPC, 64-bit
7352 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7353 # first. (That's what Apple does.)
7355 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7356 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7361 # Snow Leopard. Build for x86-64, x86, and
7362 # 32-bit PowerPC, with x86-64 first. (That's
7363 # what Apple does, even though Snow Leopard
7364 # doesn't run on PPC, so PPC libpcap runs under
7365 # Rosetta, and Rosetta doesn't support BPF
7366 # ioctls, so PPC programs can't do live
7369 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7370 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7375 # Post-Snow Leopard. Build for x86-64 and
7376 # x86, with x86-64 first. (That's probably what
7377 # Apple does, given that Rosetta is gone.)
7378 # XXX - update if and when Apple drops support
7379 # for 32-bit x86 code.
7381 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7382 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7390 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7394 # Use System V conventions for man pages.
7403 # Use System V conventions for man pages.
7412 # Use System V conventions for man pages.
7420 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7422 if test "`uname
-m`" = "ia64"; then
7429 # "-b" builds a shared library; "+h" sets the soname.
7435 # Use System V conventions for man pages.
7443 # Use System V conventions for man pages.
7449 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7453 # Compiler assumed to be GCC; run-time linker may require a -R
7456 if test "$libdir" != "/usr/lib"; then
7457 V_RFLAGS=-Wl,-R$libdir
7465 # Use System V conventions for man pages.
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7473 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7474 if ${ac_cv_cc_sinix_defined+:} false; then :
7475 $as_echo_n "(cached) " >&6
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489 ac_cv_cc_sinix_defined=yes
7491 ac_cv_cc_sinix_defined=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7497 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7498 if test $ac_cv_cc_sinix_defined = no ; then
7500 $as_echo "#define sinix 1" >>confdefs.h
7507 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7512 # Use System V conventions for man pages.
7519 # Check whether --enable-shared was given.
7520 if test "${enable_shared+set}" = set; then :
7521 enableval=$enable_shared;
7524 test "x$enable_shared" = "xno" && DYEXT="none"
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_RANLIB+:} false; then :
7532 $as_echo_n "(cached) " >&6
7534 if test -n "$RANLIB"; then
7535 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 RANLIB=$ac_cv_prog_RANLIB
7555 if test -n "$RANLIB"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7557 $as_echo "$RANLIB" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7565 if test -z "$ac_cv_prog_RANLIB"; then
7566 ac_ct_RANLIB=$RANLIB
7567 # Extract the first word of "ranlib", so it can be a program name with args.
7568 set dummy ranlib; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 if test -n "$ac_ct_RANLIB"; then
7575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_RANLIB="ranlib"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7595 if test -n "$ac_ct_RANLIB"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7597 $as_echo "$ac_ct_RANLIB" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7603 if test "x$ac_ct_RANLIB" = x; then
7606 case $cross_compiling:$ac_tool_warned in
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7612 RANLIB=$ac_ct_RANLIB
7615 RANLIB="$ac_cv_prog_RANLIB"
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}ar; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_AR+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 if test -n "$AR"; then
7627 ac_cv_prog_AR="$AR" # Let the user override the test.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_AR="${ac_tool_prefix}ar"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 if test -n "$AR"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7649 $as_echo "$AR" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7657 if test -z "$ac_cv_prog_AR"; then
7659 # Extract the first word of "ar", so it can be a program name with args.
7660 set dummy ar; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$ac_ct_AR"; then
7667 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_AR="ar"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7687 if test -n "$ac_ct_AR"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7689 $as_echo "$ac_ct_AR" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7695 if test "x$ac_ct_AR" = x; then
7698 case $cross_compiling:$ac_tool_warned in
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7712 $as_echo_n "checking whether ln -s works... " >&6; }
7714 if test "$LN_S" = "ln -s"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7716 $as_echo "yes" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7719 $as_echo "no, using $LN_S" >&6; }
7725 if test "${LBL_CFLAGS+set}" = set; then
7726 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7728 if test -f .devel ; then
7730 # Skip all the warning option stuff on some compilers.
7732 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7735 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7736 save_CFLAGS="$CFLAGS"
7737 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7749 if ac_fn_c_try_compile "$LINENO"; then :
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7754 # We're assuming this is clang, where
7755 # -Werror=unknown-warning-option is the appropriate
7756 # option to force the compiler to fail.
7758 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763 $as_echo "yes" >&6; }
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 CFLAGS="$save_CFLAGS"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7771 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7772 save_CFLAGS="$CFLAGS"
7773 if expr "x-Wall" : "x-W.*" >/dev/null
7775 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7776 elif expr "x-Wall" : "x-f.*" >/dev/null
7778 CFLAGS="$CFLAGS -Werror -Wall"
7779 elif expr "x-Wall" : "x-m.*" >/dev/null
7781 CFLAGS="$CFLAGS -Werror -Wall"
7783 CFLAGS="$CFLAGS -Wall"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7796 if ac_fn_c_try_compile "$LINENO"; then :
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 CFLAGS="$save_CFLAGS"
7801 V_CCOPT="$V_CCOPT -Wall"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 CFLAGS="$save_CFLAGS"
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
7814 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
7815 save_CFLAGS="$CFLAGS"
7816 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
7818 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
7819 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
7821 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7822 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
7824 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7826 CFLAGS="$CFLAGS -Wsign-compare"
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7839 if ac_fn_c_try_compile "$LINENO"; then :
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7843 CFLAGS="$save_CFLAGS"
7844 V_CCOPT="$V_CCOPT -Wsign-compare"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 CFLAGS="$save_CFLAGS"
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7857 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7858 save_CFLAGS="$CFLAGS"
7859 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
7861 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7862 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
7864 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7865 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
7867 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7869 CFLAGS="$CFLAGS -Wmissing-prototypes"
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7882 if ac_fn_c_try_compile "$LINENO"; then :
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7885 $as_echo "yes" >&6; }
7886 CFLAGS="$save_CFLAGS"
7887 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 CFLAGS="$save_CFLAGS"
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7900 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7901 save_CFLAGS="$CFLAGS"
7902 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
7904 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7905 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
7907 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7908 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
7910 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7912 CFLAGS="$CFLAGS -Wstrict-prototypes"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7925 if ac_fn_c_try_compile "$LINENO"; then :
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; }
7929 CFLAGS="$save_CFLAGS"
7930 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 CFLAGS="$save_CFLAGS"
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
7943 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
7944 save_CFLAGS="$CFLAGS"
7945 if expr "x-Wshadow" : "x-W.*" >/dev/null
7947 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
7948 elif expr "x-Wshadow" : "x-f.*" >/dev/null
7950 CFLAGS="$CFLAGS -Werror -Wshadow"
7951 elif expr "x-Wshadow" : "x-m.*" >/dev/null
7953 CFLAGS="$CFLAGS -Werror -Wshadow"
7955 CFLAGS="$CFLAGS -Wshadow"
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7968 if ac_fn_c_try_compile "$LINENO"; then :
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7971 $as_echo "yes" >&6; }
7972 CFLAGS="$save_CFLAGS"
7973 V_CCOPT="$V_CCOPT -Wshadow"
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 CFLAGS="$save_CFLAGS"
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
7986 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
7987 save_CFLAGS="$CFLAGS"
7988 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
7990 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
7991 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
7993 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7994 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
7996 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7998 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8011 if ac_fn_c_try_compile "$LINENO"; then :
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8014 $as_echo "yes" >&6; }
8015 CFLAGS="$save_CFLAGS"
8016 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 CFLAGS="$save_CFLAGS"
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
8029 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
8030 save_CFLAGS="$CFLAGS"
8031 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
8033 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
8034 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
8036 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8037 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
8039 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
8041 CFLAGS="$CFLAGS -Wused-but-marked-unused"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8054 if ac_fn_c_try_compile "$LINENO"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057 $as_echo "yes" >&6; }
8058 CFLAGS="$save_CFLAGS"
8059 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 CFLAGS="$save_CFLAGS"
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
8073 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
8074 if test "$GCC" = yes ; then
8076 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
8077 # though it's not); we assume that, in this case, the flag
8080 ac_lbl_dependency_flag="-M"
8083 # Not GCC or a compiler deemed to be GCC; what platform is
8084 # this? (We're assuming that if the compiler isn't GCC
8085 # it's the compiler from the vendor of the OS; that won't
8086 # necessarily be true for x86 platforms, where it might be
8087 # the Intel C compiler.)
8093 # MIPS C for IRIX, DEC C, and clang all use -M.
8095 ac_lbl_dependency_flag="-M"
8102 ac_lbl_dependency_flag="-xM"
8107 # HP's older C compilers don't support this.
8108 # HP's newer C compilers support this with
8109 # either +M or +Make; the older compilers
8110 # interpret +M as something completely
8111 # different, so we use +Make so we don't
8112 # think it works with the older compilers.
8114 ac_lbl_dependency_flag="+Make"
8119 # Not one of the above; assume no support for
8120 # generating dependencies.
8122 ac_lbl_dependency_flag=""
8128 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
8129 # complain about it?
8131 # Note: clang doesn't seem to exit with an error status when handed
8132 # an unknown non-warning error, even if you pass it
8133 # -Werror=unknown-warning-option. However, it always supports
8134 # -M, so the fact that this test always succeeds with clang
8137 if test ! -z "$ac_lbl_dependency_flag"; then
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 int main(void) { return 0; }
8142 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
8143 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
8145 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
8146 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
8147 MKDEP='${srcdir}/mkdep'
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8152 # We can't run mkdep, so have "make depend" do
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8162 # We can't run mkdep, so have "make depend" do
8171 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8172 # to mean that we're using MIPS C or MIPSpro C); it specified
8173 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8174 # not sure why that would be something to do *only* with a
8175 # .devel file; why should the ABI for which we produce code
8178 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8180 if test -f $name ; then
8181 ln -s $name os-proto.h
8183 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8187 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8192 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8193 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8199 # include <sys/types.h>
8200 # include <sys/socket.h>
8204 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 ac_cv_lbl_sockaddr_has_sa_len=yes
8212 ac_cv_lbl_sockaddr_has_sa_len=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8218 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8219 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8221 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8226 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8227 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8228 $as_echo_n "(cached) " >&6
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8233 # include <sys/types.h>
8234 # include <sys/socket.h>
8238 u_int i = sizeof (struct sockaddr_storage)
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 ac_cv_lbl_has_sockaddr_storage=yes
8246 ac_cv_lbl_has_sockaddr_storage=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8252 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8253 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8255 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8260 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8261 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8267 # include <sys/types.h>
8268 # include <sys/dlpi.h>
8269 # include <sys/dlpi_ext.h>
8273 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8281 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8287 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8288 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8290 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8295 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8296 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8297 $as_echo_n "(cached) " >&6
8302 # These are CPU types where:
8304 # the CPU faults on an unaligned access, but at least some
8305 # OSes that support that CPU catch the fault and simulate
8306 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8307 # the simulation is slow, so we don't want to use it;
8309 # the CPU, I infer (from the old
8311 # XXX: should also check that they don't do weird things (like on arm)
8313 # comment) doesn't fault on unaligned accesses, but doesn't
8314 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8316 # for whatever reason, the test program doesn't work
8317 # (this has been claimed to be the case for several of those
8318 # CPUs - I don't know what the problem is; the problem
8319 # was reported as "the test program dumps core" for SuperH,
8320 # but that's what the test program is *supposed* to do -
8321 # it dumps core before it writes anything, so the test
8322 # for an empty output file should find an empty output
8323 # file and conclude that unaligned accesses don't work).
8325 # This run-time test won't work if you're cross-compiling, so
8326 # in order to support cross-compiling for a particular CPU,
8327 # we have to wire in the list of CPU types anyway, as far as
8328 # I know, so perhaps we should just have a set of CPUs on
8329 # which we know it doesn't work, a set of CPUs on which we
8330 # know it does work, and have the script just fail on other
8331 # cpu types and update it when such a failure occurs.
8333 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8334 ac_cv_lbl_unaligned_fail=yes
8338 cat >conftest.c <<EOF
8339 # include <sys/types.h>
8340 # include <sys/wait.h>
8342 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8347 /* avoid "core dumped" message */
8353 pid = waitpid(pid, &status, 0);
8356 exit(!WIFEXITED(status));
8359 i = *(unsigned int *)&a[1];
8364 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8365 conftest.c $LIBS >/dev/null 2>&1
8366 if test ! -x conftest ; then
8367 ac_cv_lbl_unaligned_fail=yes
8369 ./conftest >conftest.out
8370 if test ! -s conftest.out ; then
8371 ac_cv_lbl_unaligned_fail=yes
8373 ac_cv_lbl_unaligned_fail=no
8376 rm -f -r conftest* core core.conftest
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8382 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8383 if test $ac_cv_lbl_unaligned_fail = yes ; then
8385 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8390 ln -s ${srcdir}/bpf/net net
8410 # Check whether --enable-usb was given.
8411 if test "${enable_usb+set}" = set; then :
8412 enableval=$enable_usb;
8418 if test "xxx_only" = yes; then
8419 # User requested something-else-only pcap, so they don't
8424 if test "x$enable_usb" != "xno" ; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8426 $as_echo_n "checking for USB sniffing support... " >&6; }
8430 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8432 USB_SRC=pcap-usb-linux.c
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8435 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
8436 if test $? -ne 0 ; then
8437 ac_usb_dev_name="usbmon"
8440 cat >>confdefs.h <<_ACEOF
8441 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8445 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8447 # Do we have a version of <linux/compiler.h> available?
8448 # If so, we might need it for <linux/usbdevice_fs.h>.
8450 for ac_header in linux/compiler.h
8452 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8453 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_LINUX_COMPILER_H 1
8462 if test "$ac_cv_header_linux_compiler_h" = yes; then
8464 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8466 for ac_header in linux/usbdevice_fs.h
8468 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8470 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_LINUX_USBDEVICE_FS_H 1
8480 for ac_header in linux/usbdevice_fs.h
8482 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8483 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_LINUX_USBDEVICE_FS_H 1
8493 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8495 # OK, does it define bRequestType? Older versions of the kernel
8496 # define fields with names like "requesttype, "request", and
8497 # "value", rather than "bRequestType", "bRequest", and
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8501 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8502 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8503 $as_echo_n "(cached) " >&6
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8508 $ac_includes_default
8509 #ifdef HAVE_SYS_BITYPES_H
8510 #include <sys/bitypes.h>
8512 #ifdef HAVE_LINUX_COMPILER_H
8513 #include <linux/compiler.h>
8515 #include <linux/usbdevice_fs.h>
8519 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8524 if ac_fn_c_try_compile "$LINENO"; then :
8525 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8527 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8533 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8534 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8536 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8543 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8544 # to check for anything special for capturing.
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8547 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8559 if test "xxx_only" != yes; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8561 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8565 $as_echo "yes" >&6; }
8567 # Life's too short to deal with trying to get this to compile
8568 # if you don't get the right types defined with
8569 # __KERNEL_STRICT_NAMES getting defined by some other include.
8571 # Check whether the includes Just Work. If not, don't turn on
8572 # netfilter support.
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8575 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8576 if ${ac_cv_netfilter_can_compile+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 $ac_includes_default
8583 #include <sys/socket.h>
8584 #include <netinet/in.h>
8585 #include <linux/types.h>
8587 #include <linux/netlink.h>
8588 #include <linux/netfilter.h>
8589 #include <linux/netfilter/nfnetlink.h>
8590 #include <linux/netfilter/nfnetlink_log.h>
8591 #include <linux/netfilter/nfnetlink_queue.h>
8600 if ac_fn_c_try_compile "$LINENO"; then :
8601 ac_cv_netfilter_can_compile=yes
8603 ac_cv_netfilter_can_compile=no
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8609 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8610 if test $ac_cv_netfilter_can_compile = yes ; then
8612 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8614 NETFILTER_SRC=pcap-netfilter-linux.c
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8626 # Check whether --enable-bluetooth was given.
8627 if test "${enable_bluetooth+set}" = set; then :
8628 enableval=$enable_bluetooth;
8630 enable_bluetooth=ifsupportavailable
8634 if test "xxx_only" = yes; then
8635 # User requested something-else-only pcap, so they don't
8636 # want Bluetooth support.
8640 if test "x$enable_bluetooth" != "xno" ; then
8643 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8644 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8647 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8649 BT_SRC=pcap-bt-linux.c
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8651 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8654 # OK, does struct sockaddr_hci have an hci_channel
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8658 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8659 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8660 $as_echo_n "(cached) " >&6
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8665 #include <bluetooth/bluetooth.h>
8666 #include <bluetooth/hci.h>
8671 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8676 if ac_fn_c_try_compile "$LINENO"; then :
8677 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8679 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8685 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8686 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8688 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8692 # OK, is HCI_CHANNEL_MONITOR defined?
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8695 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8696 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8702 #include <bluetooth/bluetooth.h>
8703 #include <bluetooth/hci.h>
8708 u_int i = HCI_CHANNEL_MONITOR
8713 if ac_fn_c_try_compile "$LINENO"; then :
8714 ac_cv_lbl_hci_channel_monitor_is_defined=yes
8716 ac_cv_lbl_hci_channel_monitor_is_defined=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8722 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8723 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8725 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8727 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8730 ac_lbl_bluetooth_available=yes
8733 ac_lbl_bluetooth_available=no
8738 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8739 if test "x$enable_bluetooth" = "xyes" ; then
8740 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8743 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8748 if test "x$enable_bluetooth" = "xyes" ; then
8749 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8752 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8761 # Check whether --enable-dbus was given.
8762 if test "${enable_dbus+set}" = set; then :
8763 enableval=$enable_dbus;
8765 enable_dbus=ifavailable
8769 if test "xxx_only" = yes; then
8770 # User requested something-else-only pcap, so they don't
8771 # want D-Bus support.
8775 if test "x$enable_dbus" != "xno"; then
8776 if test "x$enable_dbus" = "xyes"; then
8781 # We don't support D-Bus sniffing on OS X; see
8783 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8785 # The user requested it, so fail.
8787 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
8794 # We don't support D-Bus sniffing on OS X; see
8796 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8798 # The user dind't explicitly request it, so just
8799 # silently refuse to enable it.
8807 if test "x$enable_dbus" != "xno"; then
8808 # Extract the first word of "pkg-config", so it can be a program name with args.
8809 set dummy pkg-config; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_PKGCONFIG+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$PKGCONFIG"; then
8816 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_PKGCONFIG="pkg-config"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8836 PKGCONFIG=$ac_cv_prog_PKGCONFIG
8837 if test -n "$PKGCONFIG"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8839 $as_echo "$PKGCONFIG" >&6; }
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8846 if test "x$PKGCONFIG" != "xno"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8848 $as_echo_n "checking for D-Bus... " >&6; }
8849 if "$PKGCONFIG" dbus-1; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851 $as_echo "yes" >&6; }
8852 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
8853 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
8854 save_CFLAGS="$CFLAGS"
8856 CFLAGS="$CFLAGS $DBUS_CFLAGS"
8857 LIBS="$LIBS $DBUS_LIBS"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8859 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8865 #include <sys/time.h>
8867 #include <dbus/dbus.h>
8871 return dbus_connection_read_write(NULL, 0);
8876 if ac_fn_c_try_link "$LINENO"; then :
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8879 $as_echo "yes" >&6; }
8881 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8883 DBUS_SRC=pcap-dbus.c
8884 V_INCLS="$V_INCLS $DBUS_CFLAGS"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 if test "x$enable_dbus" = "xyes"; then
8891 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8896 rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 CFLAGS="$save_CFLAGS"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 if test "x$enable_dbus" = "xyes"; then
8903 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8913 for ac_header in linux/net_tstamp.h
8915 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8916 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8917 cat >>confdefs.h <<_ACEOF
8918 #define HAVE_LINUX_NET_TSTAMP_H 1
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8928 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8932 # Check whether --enable-packet-ring was given.
8933 if test "${enable_packet_ring+set}" = set; then :
8934 enableval=$enable_packet_ring;
8936 enable_packet_ring=yes
8940 if test "x$enable_packet_ring" != "xno" ; then
8942 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8947 # Find a good install program. We prefer a C program (faster),
8948 # so one script is as good as another. But avoid the broken or
8949 # incompatible versions:
8950 # SysV /etc/install, /usr/sbin/install
8951 # SunOS /usr/etc/install
8952 # IRIX /sbin/install
8954 # AmigaOS /C/install, which installs bootblocks on floppy discs
8955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8958 # OS/2's system install, which has a completely different semantic
8959 # ./install, which can be erroneously created by make from ./install.sh.
8960 # Reject install programs that cannot install multiple files.
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8963 if test -z "$INSTALL"; then
8964 if ${ac_cv_path_install+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 test -z "$as_dir" && as_dir=.
8972 # Account for people who put trailing slashes in PATH elements.
8973 case $as_dir/ in #((
8974 ./ | .// | /[cC]/* | \
8975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8979 # OSF1 and SCO ODT 3.0 have their own names for install.
8980 # Don't use installbsd from OSF since it installs stuff as root
8982 for ac_prog in ginstall scoinst install; do
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8985 if test $ac_prog = install &&
8986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8987 # AIX install. It has an incompatible calling convention.
8989 elif test $ac_prog = install &&
8990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8991 # program-specific install script used by HP pwplus--don't use.
8994 rm -rf conftest.one conftest.two conftest.dir
8995 echo one > conftest.one
8996 echo two > conftest.two
8998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8999 test -s conftest.one && test -s conftest.two &&
9000 test -s conftest.dir/conftest.one &&
9001 test -s conftest.dir/conftest.two
9003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9016 rm -rf conftest.one conftest.two conftest.dir
9019 if test "${ac_cv_path_install+set}" = set; then
9020 INSTALL=$ac_cv_path_install
9022 # As a last resort, use the slow shell script. Don't cache a
9023 # value for INSTALL within a source directory, because that will
9024 # break other packages using the cache if that directory is
9025 # removed, or if the value is a relative name.
9026 INSTALL=$ac_install_sh
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9030 $as_echo "$INSTALL" >&6; }
9032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9033 # It thinks the first close brace ends the variable substitution.
9034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9041 ac_config_headers="$ac_config_headers config.h"
9044 ac_config_commands="$ac_config_commands default-1"
9046 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"
9048 cat >confcache <<\_ACEOF
9049 # This file is a shell script that caches the results of configure
9050 # tests run on this system so they can be shared between configure
9051 # scripts and configure runs, see configure's option --config-cache.
9052 # It is not useful on other systems. If it contains results you don't
9053 # want to keep, you may remove or edit it.
9055 # config.status only pays attention to the cache file if you give it
9056 # the --recheck option to rerun configure.
9058 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9064 # The following way of writing the cache mishandles newlines in values,
9065 # but we know of no workaround that is simple, portable, and efficient.
9066 # So, we kill variables containing newlines.
9067 # Ultrix sh set writes to stderr and can't be redirected directly,
9068 # and sets the high bit in the cache file unless we assign to the vars.
9070 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9071 eval ac_val
=\$
$ac_var
9075 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9079 _ | IFS | as_nl
) ;; #(
9080 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9081 *) { eval $ac_var=; unset $ac_var;} ;;
9087 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9088 *${as_nl}ac_space
=\
*)
9089 # `set' does not quote correctly, so add quotes: double-quote
9090 # substitution turns \\\\ into \\, and sed turns \\ into \.
9093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9096 # `set' quotes correctly as required by POSIX, so do not add quotes.
9097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9110 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9111 if test -w "$cache_file"; then
9112 if test "x$cache_file" != "x/dev/null"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9114 $as_echo "$as_me: updating cache $cache_file" >&6;}
9115 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9116 cat confcache
>"$cache_file"
9118 case $cache_file in #(
9120 mv -f confcache
"$cache_file"$$
&&
9121 mv -f "$cache_file"$$
"$cache_file" ;; #(
9123 mv -f confcache
"$cache_file" ;;
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9129 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9134 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9135 # Let make expand exec_prefix.
9136 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9138 DEFS
=-DHAVE_CONFIG_H
9143 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9144 # 1. Remove the extension, and $U if already installed.
9145 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9146 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9147 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9148 # will be set to the directory where LIBOBJS objects are built.
9149 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9150 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9154 LTLIBOBJS
=$ac_ltlibobjs
9158 : "${CONFIG_STATUS=./config.status}"
9160 ac_clean_files_save
=$ac_clean_files
9161 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9165 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9167 # Generated by $as_me.
9168 # Run this file to recreate the current configuration.
9169 # Compiler output produced by configure, useful for debugging
9170 # configure, is in config.log if it exists.
9176 SHELL=\${CONFIG_SHELL-$SHELL}
9179 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9180 ## -------------------- ##
9181 ## M4sh Initialization. ##
9182 ## -------------------- ##
9184 # Be more Bourne compatible
9185 DUALCASE
=1; export DUALCASE
# for MKS sh
9186 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9190 # is contrary to our usage. Disable this feature.
9191 alias -g '${1+"$@"}'='"$@"'
9192 setopt NO_GLOB_SUBST
9194 case `(set -o) 2>/dev/null` in #(
9206 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9207 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9210 # Prefer a ksh shell builtin over an external printf program on Solaris,
9211 # but without wasting forks for bash or zsh.
9212 if test -z "$BASH_VERSION$ZSH_VERSION" \
9213 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9214 as_echo='print
-r --'
9215 as_echo_n='print
-rn --'
9216 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9217 as_echo='printf %s
\n'
9218 as_echo_n='printf %s
'
9220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9221 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9222 as_echo_n='/usr
/ucb
/echo -n'
9224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9225 as_echo_n_body='eval
9229 expr "X$arg" : "X\\(.*\\)$as_nl";
9230 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9232 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9234 export as_echo_n_body
9235 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9238 as_echo='sh
-c $as_echo_body as_echo
'
9241 # The user is always right.
9242 if test "${PATH_SEPARATOR+set}" != set; then
9244 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9245 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9252 # We need space, tab and new line, in precisely that order. Quoting is
9253 # there to prevent editors from complaining about space-tab.
9254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9255 # splitting by setting IFS to empty value.)
9258 # Find who we are. Look in the path if we contain no directory separator.
9261 *[\\/]* ) as_myself=$0 ;;
9262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 test -z "$as_dir" && as_dir=.
9267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9273 # We did not find ourselves, most probably we were run as `sh COMMAND'
9274 # in which case we are not to be found in the path.
9275 if test "x$as_myself" = x
; then
9278 if test ! -f "$as_myself"; then
9279 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9283 # Unset variables that we do not need and which cause bugs (e.g. in
9284 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9285 # suppresses any "Segmentation fault" message there. '((' could
9286 # trigger a bug in pdksh 5.2.14.
9287 for as_var
in BASH_ENV ENV MAIL MAILPATH
9288 do eval test x\
${$as_var+set} = xset \
9289 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9302 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9305 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9306 # ----------------------------------------
9307 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9308 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9309 # script with STATUS, using 1 if that was 0.
9312 as_status
=$1; test $as_status -eq 0 && as_status
=1
9314 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9315 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9317 $as_echo "$as_me: error: $2" >&2
9318 as_fn_exit
$as_status
9322 # as_fn_set_status STATUS
9323 # -----------------------
9324 # Set $? to STATUS, without forking.
9328 } # as_fn_set_status
9332 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9342 # Portably unset VAR.
9345 { eval $1=; unset $1;}
9347 as_unset
=as_fn_unset
9348 # as_fn_append VAR VALUE
9349 # ----------------------
9350 # Append the text in VALUE to the end of the definition contained in VAR. Take
9351 # advantage of any shell optimizations that allow amortized linear growth over
9352 # repeated appends, instead of the typical quadratic growth present in naive
9354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9355 eval 'as_fn_append ()
9366 # as_fn_arith ARG...
9367 # ------------------
9368 # Perform arithmetic evaluation on the ARGs, and store the result in the
9369 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9370 # must be portable across $(()) and expr.
9371 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9372 eval 'as_fn_arith ()
9379 as_val
=`expr "$@" || test $? -eq 1`
9384 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9385 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9391 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9392 as_basename
=basename
9397 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9403 as_me
=`$as_basename -- "$0" ||
9404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9405 X"$0" : 'X\(//\)$' \| \
9406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9408 sed '/^.*\/\([^/][^/]*\)\/*$/{
9422 # Avoid depending upon Character Ranges.
9423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9426 as_cr_digits
='0123456789'
9427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9429 ECHO_C
= ECHO_N
= ECHO_T
=
9430 case `echo -n x` in #(((((
9432 case `echo 'xy\c'` in
9433 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9435 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9442 rm -f conf$$ conf$$.exe conf$$.
file
9443 if test -d conf$$.dir
; then
9444 rm -f conf$$.dir
/conf$$.
file
9447 mkdir conf$$.dir
2>/dev
/null
9449 if (echo >conf$$.
file) 2>/dev
/null
; then
9450 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9452 # ... but there are two gotchas:
9453 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9454 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9455 # In both cases, we have to default to `cp -pR'.
9456 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9458 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9466 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9467 rmdir conf$$.dir
2>/dev
/null
9472 # Create "$as_dir" as a directory, including parents if necessary.
9477 -*) as_dir
=.
/$as_dir;;
9479 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9483 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9484 *) as_qdir
=$as_dir;;
9486 as_dirs
="'$as_qdir' $as_dirs"
9487 as_dir
=`$as_dirname -- "$as_dir" ||
9488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9489 X"$as_dir" : 'X\(//\)[^/]' \| \
9490 X"$as_dir" : 'X\(//\)$' \| \
9491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9492 $as_echo X"$as_dir" |
9493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9510 test -d "$as_dir" && break
9512 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9513 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9517 if mkdir
-p .
2>/dev
/null
; then
9518 as_mkdir_p
='mkdir -p "$as_dir"'
9520 test -d .
/-p && rmdir .
/-p
9525 # as_fn_executable_p FILE
9526 # -----------------------
9527 # Test if FILE is an executable regular file.
9528 as_fn_executable_p
()
9530 test -f "$1" && test -x "$1"
9531 } # as_fn_executable_p
9533 as_executable_p
=as_fn_executable_p
9535 # Sed expression to map a string onto a valid CPP name.
9536 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9538 # Sed expression to map a string onto a valid variable name.
9539 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9543 ## ----------------------------------- ##
9544 ## Main body of $CONFIG_STATUS script. ##
9545 ## ----------------------------------- ##
9547 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9550 # Save the log message, to keep $0 and so on meaningful, and to
9551 # report actual input values of CONFIG_FILES etc. instead of their
9552 # values after options handling.
9554 This file was extended by $as_me, which was
9555 generated by GNU Autoconf 2.69. Invocation command line was
9557 CONFIG_FILES = $CONFIG_FILES
9558 CONFIG_HEADERS = $CONFIG_HEADERS
9559 CONFIG_LINKS = $CONFIG_LINKS
9560 CONFIG_COMMANDS = $CONFIG_COMMANDS
9563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9568 case $ac_config_files in *"
9569 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9572 case $ac_config_headers in *"
9573 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9578 # Files that config.status was made for.
9579 config_files="$ac_config_files"
9580 config_headers="$ac_config_headers"
9581 config_commands="$ac_config_commands"
9585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9587 \`$as_me' instantiates files and other configuration actions
9588 from templates according to the current configuration. Unless the files
9589 and actions are specified as TAGs, all are instantiated by default.
9591 Usage: $0 [OPTION]... [TAG]...
9593 -h, --help print this help, then exit
9594 -V, --version print version number and configuration settings, then exit
9595 --config print configuration, then exit
9596 -q, --quiet, --silent
9597 do not print progress messages
9598 -d, --debug don't remove temporary files
9599 --recheck update $as_me by reconfiguring in the same conditions
9600 --file=FILE[:TEMPLATE]
9601 instantiate the configuration file FILE
9602 --header=FILE[:TEMPLATE]
9603 instantiate the configuration header FILE
9605 Configuration files:
9608 Configuration headers:
9611 Configuration commands:
9614 Report bugs to the package provider."
9617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9621 configured by $0, generated by GNU Autoconf 2.69,
9622 with options \\"\$ac_cs_config\\"
9624 Copyright (C) 2012 Free Software Foundation, Inc.
9625 This config.status script is free software; the Free Software Foundation
9626 gives unlimited permission to copy, distribute and modify it."
9631 test -n "\$AWK" || AWK=awk
9634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9635 # The default lists apply if the user does not specify any file.
9641 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9642 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9646 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9658 # Handling of the options.
9659 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9661 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9662 $as_echo "$ac_cs_version"; exit ;;
9663 --config |
--confi |
--conf |
--con |
--co |
--c )
9664 $as_echo "$ac_cs_config"; exit ;;
9665 --debug |
--debu |
--deb |
--de |
--d |
-d )
9667 --file |
--fil |
--fi |
--f )
9670 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9671 '') as_fn_error $?
"missing file argument" ;;
9673 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9674 ac_need_defaults
=false
;;
9675 --header |
--heade |
--head |
--hea )
9678 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9680 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9681 ac_need_defaults
=false
;;
9683 # Conflict between --help and --header
9684 as_fn_error $?
"ambiguous option: \`$1'
9685 Try \`$0 --help' for more information.";;
9686 --help |
--hel |
-h )
9687 $as_echo "$ac_cs_usage"; exit ;;
9688 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9689 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9693 -*) as_fn_error $?
"unrecognized option: \`$1'
9694 Try \`$0 --help' for more information." ;;
9696 *) as_fn_append ac_config_targets
" $1"
9697 ac_need_defaults
=false
;;
9703 ac_configure_extra_args
=
9705 if $ac_cs_silent; then
9707 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9712 if \$ac_cs_recheck; then
9713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9716 CONFIG_SHELL='$SHELL'
9722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9727 ## Running $as_me. ##
9733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9743 # Handling of arguments.
9744 for ac_config_target
in $ac_config_targets
9746 case $ac_config_target in
9747 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9748 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9749 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9750 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9751 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9752 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9753 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9754 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9755 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9756 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9757 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9758 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9759 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9760 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9761 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9762 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9763 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9764 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9766 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9771 # If the user did not use the arguments to specify the items to instantiate,
9772 # then the envvar interface is used. Set only those that are not.
9773 # We use the long form for the default assignment because of an extremely
9774 # bizarre bug on SunOS 4.1.3.
9775 if $ac_need_defaults; then
9776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9781 # Have a temporary directory for convenience. Make it in the build tree
9782 # simply because there is no reason against having it here, and in addition,
9783 # creating and moving files from /tmp can sometimes cause problems.
9784 # Hook for its removal unless debugging.
9785 # Note that there is a small window in which the directory will not be cleaned:
9786 # after its creation but before its name has been assigned to `$tmp'.
9790 trap 'exit_status=$?
9792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9794 trap 'as_fn_exit 1' 1 2 13 15
9796 # Create a (secure) tmp directory for tmp files.
9799 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9803 tmp
=.
/conf$$
-$RANDOM
9804 (umask 077 && mkdir
"$tmp")
9805 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9808 # Set up the scripts for CONFIG_FILES section.
9809 # No need to generate them if there are no CONFIG_FILES.
9810 # This happens for instance with `./config.status config.h'.
9811 if test -n "$CONFIG_FILES"; then
9814 ac_cr
=`echo X | tr X '\015'`
9815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9816 # But we know of no other shell where ac_cr would be empty at this
9817 # point, so we can use a bashism as a fallback.
9818 if test "x$ac_cr" = x
; then
9819 eval ac_cr
=\$
\'\\r
\'
9821 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9833 echo "cat >conf$$subs.awk <<_ACEOF" &&
9834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9837 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9840 for ac_last_try in false false false false false :; do
9841 . ./conf$$subs.sh ||
9842 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9844 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9845 if test $ac_delim_n = $ac_delim_num; then
9847 elif $ac_last_try; then
9848 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9850 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9856 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9860 s/^/S["/; s
/!.
*/"]=/
9870 s/\(.\{148\}\)..*/\1/
9872 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9877 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9884 s/\(.\{148\}\)..*/\1/
9886 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9890 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9895 ' <conf$$subs.awk | sed '
9900 ' >>$CONFIG_STATUS || ac_write_fail=1
9901 rm -f conf$$subs.awk
9902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9904 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9905 for (key in S) S_is_set[key] = 1
9911 nfields = split(line, field, "@
")
9913 len = length(field[1])
9914 for (i = 2; i < nfields; i++) {
9916 keylen = length(key)
9917 if (S_is_set[key]) {
9919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9920 len += length(value) + length(field[++i])
9931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9932 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9933 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9936 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9937 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9940 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9941 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9942 # trailing colons and then remove the whole line if VPATH becomes empty
9943 # (actually we leave an empty line to preserve line numbers).
9944 if test "x
$srcdir" = x.; then
9945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9964 fi # test -n "$CONFIG_FILES"
9966 # Set up the scripts for CONFIG_HEADERS section.
9967 # No need to generate them if there are no CONFIG_HEADERS.
9968 # This happens for instance with `./config.status Makefile'.
9969 if test -n "$CONFIG_HEADERS"; then
9970 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9974 # Transform confdefs.h into an awk script `defines.awk', embedded as
9975 # here-document in config.status, that substitutes the proper values into
9976 # config.h.in to produce config.h.
9978 # Create a delimiter string that does not exist in confdefs.h, to ease
9979 # handling of long lines.
9981 for ac_last_try in false false :; do
9982 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9983 if test -z "$ac_tt"; then
9985 elif $ac_last_try; then
9986 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9988 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9992 # For the awk script, D is an array of macro values keyed by name,
9993 # likewise P contains macro parameters if any. Preserve backslash
9994 # newline sequences.
9996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9998 s/.\{148\}/&'"$ac_delim"'/g
10001 s/^[ ]*#[ ]*define[ ][ ]*/ /
10008 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10010 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10015 D["\
1"]=" \
3\\\\\\n
"\\/p
10017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10022 s/.\{148\}/&'"$ac_delim"'/g
10027 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10030 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10032 ' <confdefs.h | sed '
10033 s/'"$ac_delim"'/"\\\
10034 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10037 for (key in D) D_is_set[key] = 1
10040 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10042 split(line, arg, " ")
10043 if (arg[1] == "#") {
10047 defundef
= substr
(arg
[1], 2)
10050 split(mac1
, mac2
, "(") #)
10052 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10053 if (D_is_set
[macro
]) {
10054 # Preserve the white space surrounding the "#".
10055 print prefix
"define", macro P
[macro
] D
[macro
]
10058 # Replace #undef with comments. This is necessary, for example,
10059 # in the case of _POSIX_SOURCE, which is predefined and required
10060 # on some systems where configure will not decide to define it.
10061 if (defundef
== "undef") {
10062 print
"/*", prefix defundef
, macro
, "*/"
10070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10071 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10072 fi # test -n "$CONFIG_HEADERS"
10075 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10080 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10082 case $ac_mode$ac_tag in
10084 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10085 :[FH
]-) ac_tag
=-:-;;
10086 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10103 -) ac_f
="$ac_tmp/stdin";;
10104 *) # Look for the file first in the build tree, then in the source tree
10105 # (if the path is not absolute). The absolute path cannot be DOS-style,
10106 # because $ac_f cannot contain `:'.
10110 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10112 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10114 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10115 as_fn_append ac_file_inputs
" '$ac_f'"
10118 # Let's still pretend it is `configure' which instantiates (i.e., don't
10119 # use $as_me), people would be surprised to read:
10120 # /* config.h. Generated by config.status. */
10121 configure_input
='Generated from '`
10122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10124 if test x
"$ac_file" != x-
; then
10125 configure_input
="$ac_file. $configure_input"
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10127 $as_echo "$as_me: creating $ac_file" >&6;}
10129 # Neutralize special characters interpreted by sed in replacement strings.
10130 case $configure_input in #(
10131 *\
&* |
*\|
* |
*\\* )
10132 ac_sed_conf_input
=`$as_echo "$configure_input" |
10133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10134 *) ac_sed_conf_input
=$configure_input;;
10138 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10139 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10144 ac_dir
=`$as_dirname -- "$ac_file" ||
10145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10146 X"$ac_file" : 'X\(//\)[^/]' \| \
10147 X"$ac_file" : 'X\(//\)$' \| \
10148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10149 $as_echo X"$ac_file" |
10150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10154 /^X\(\/\/\)[^/].*/{
10167 as_dir
="$ac_dir"; as_fn_mkdir_p
10171 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10173 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10174 # A ".." for each directory in $ac_dir_suffix.
10175 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10176 case $ac_top_builddir_sub in
10177 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10178 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10181 ac_abs_top_builddir
=$ac_pwd
10182 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10183 # for backward compatibility:
10184 ac_top_builddir
=$ac_top_build_prefix
10187 .
) # We are building in place.
10189 ac_top_srcdir
=$ac_top_builddir_sub
10190 ac_abs_top_srcdir
=$ac_pwd ;;
10191 [\\/]* | ?
:[\\/]* ) # Absolute name.
10192 ac_srcdir
=$srcdir$ac_dir_suffix;
10193 ac_top_srcdir
=$srcdir
10194 ac_abs_top_srcdir
=$srcdir ;;
10195 *) # Relative name.
10196 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10197 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10198 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10200 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10210 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10211 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10216 # If the template does not know about datarootdir, expand it.
10217 # FIXME: This hack should be removed a few years after 2.60.
10218 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10229 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10230 *datarootdir
*) ac_datarootdir_seen
=yes;;
10231 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10233 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10236 ac_datarootdir_hack='
10237 s&@datadir@&$datadir&g
10238 s&@docdir@&$docdir&g
10239 s&@infodir@&$infodir&g
10240 s&@localedir@&$localedir&g
10241 s&@mandir@&$mandir&g
10242 s&\\\${datarootdir}&$datarootdir&g' ;;
10246 # Neutralize VPATH when `$srcdir' = `.'.
10247 # Shell code in configure.ac might set extrasub.
10248 # FIXME: do we really want to maintain this feature?
10249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10250 ac_sed_extra="$ac_vpsub
10253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10255 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10256 s|@configure_input@|
$ac_sed_conf_input|
;t t
10257 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10258 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10259 s
&@srcdir@
&$ac_srcdir&;t t
10260 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10261 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10262 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10263 s
&@builddir@
&$ac_builddir&;t t
10264 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10265 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10266 s
&@INSTALL@
&$ac_INSTALL&;t t
10267 $ac_datarootdir_hack
10269 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10270 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10272 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10273 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10274 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10275 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10277 which seems to be undefined. Please make sure it is defined" >&5
10278 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10279 which seems to be undefined. Please make sure it is defined" >&2;}
10281 rm -f "$ac_tmp/stdin"
10283 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10284 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10292 if test x"$ac_file" != x-; then
10294 $as_echo "/* $configure_input */" \
10295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10296 } >"$ac_tmp/config.h" \
10297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10298 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10300 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10303 mv "$ac_tmp/config.h" "$ac_file" \
10304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10307 $as_echo "/* $configure_input */" \
10308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10309 || as_fn_error $? "could not create -" "$LINENO" 5
10313 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10314 $as_echo "$as_me: executing $ac_file commands" >&6;}
10319 case $ac_file$ac_mode in
10320 "default-1":C) if test -f .devel; then
10321 echo timestamp > stamp-h
10322 cat Makefile-devel-adds >> Makefile
10332 ac_clean_files=$ac_clean_files_save
10334 test $ac_write_fail = 0 ||
10335 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10338 # configure is writing to config.log, and then calls config.status.
10339 # config.status does its own redirection, appending to config.log.
10340 # Unfortunately, on DOS this fails, as config.log is still kept open
10341 # by configure, so config.status won't be able to
write to it
; its
10342 # output is simply discarded. So we exec the FD to /dev/null,
10343 # effectively closing config.log, so it can be properly (re)opened and
10344 # appended to by config.status. When coming back to configure, we
10345 # need to make the FD available again.
10346 if test "$no_create" != yes; then
10348 ac_config_status_args
=
10349 test "$silent" = yes &&
10350 ac_config_status_args
="$ac_config_status_args --quiet"
10352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10355 # would make configure fail if this is the last instruction.
10356 $ac_cs_success || as_fn_exit
1
10358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}