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
637 PCAP_SUPPORT_NETFILTER
662 HAVE_LINUX_TPACKET_AUXDATA
714 program_transform_name
727 enable_option_checking
753 ac_precious_vars
='build_alias
764 # Initialize some variables set by options.
766 ac_init_version
=false
767 ac_unrecognized_opts
=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name
=s
,x
,x
,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir
='${exec_prefix}/bin'
793 sbindir
='${exec_prefix}/sbin'
794 libexecdir
='${exec_prefix}/libexec'
795 datarootdir
='${prefix}/share'
796 datadir
='${datarootdir}'
797 sysconfdir
='${prefix}/etc'
798 sharedstatedir
='${prefix}/com'
799 localstatedir
='${prefix}/var'
800 includedir
='${prefix}/include'
801 oldincludedir
='/usr/include'
802 docdir
='${datarootdir}/doc/${PACKAGE}'
803 infodir
='${datarootdir}/info'
808 libdir
='${exec_prefix}/lib'
809 localedir
='${datarootdir}/locale'
810 mandir
='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\
$ac_option
824 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
837 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
840 -build |
--build |
--buil |
--bui |
--bu)
841 ac_prev
=build_alias
;;
842 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
843 build_alias
=$ac_optarg ;;
845 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
846 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
847 ac_prev
=cache_file
;;
848 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
849 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
850 cache_file
=$ac_optarg ;;
853 cache_file
=config.cache
;;
855 -datadir |
--datadir |
--datadi |
--datad)
857 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
858 datadir
=$ac_optarg ;;
860 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
861 |
--dataroo |
--dataro |
--datar)
862 ac_prev
=datarootdir
;;
863 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
864 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
865 datarootdir
=$ac_optarg ;;
867 -disable-* |
--disable-*)
868 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
871 as_fn_error $?
"invalid feature name: $ac_useropt"
872 ac_useropt_orig
=$ac_useropt
873 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep
=', ';;
881 eval enable_
$ac_useropt=no
;;
883 -docdir |
--docdir |
--docdi |
--doc |
--do)
885 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
888 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
890 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
893 -enable-* |
--enable-*)
894 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
897 as_fn_error $?
"invalid feature name: $ac_useropt"
898 ac_useropt_orig
=$ac_useropt
899 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep
=', ';;
907 eval enable_
$ac_useropt=\
$ac_optarg ;;
909 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
910 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
911 |
--exec |
--exe |
--ex)
912 ac_prev
=exec_prefix
;;
913 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
914 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
915 |
--exec=* |
--exe=* |
--ex=*)
916 exec_prefix
=$ac_optarg ;;
918 -gas |
--gas |
--ga |
--g)
919 # Obsolete; use --with-gas.
922 -help |
--help |
--hel |
--he |
-h)
924 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
925 ac_init_help
=recursive
;;
926 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
927 ac_init_help
=short
;;
929 -host |
--host |
--hos |
--ho)
930 ac_prev
=host_alias
;;
931 -host=* |
--host=* |
--hos=* |
--ho=*)
932 host_alias
=$ac_optarg ;;
934 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
936 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
938 htmldir
=$ac_optarg ;;
940 -includedir |
--includedir |
--includedi |
--included |
--include \
941 |
--includ |
--inclu |
--incl |
--inc)
942 ac_prev
=includedir
;;
943 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
944 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
945 includedir
=$ac_optarg ;;
947 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
949 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
950 infodir
=$ac_optarg ;;
952 -libdir |
--libdir |
--libdi |
--libd)
954 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
957 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
958 |
--libexe |
--libex |
--libe)
959 ac_prev
=libexecdir
;;
960 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
961 |
--libexe=* |
--libex=* |
--libe=*)
962 libexecdir
=$ac_optarg ;;
964 -localedir |
--localedir |
--localedi |
--localed |
--locale)
966 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
967 localedir
=$ac_optarg ;;
969 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
970 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
971 ac_prev
=localstatedir
;;
972 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
973 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
974 localstatedir
=$ac_optarg ;;
976 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
978 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
982 # Obsolete; use --without-fp.
985 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
986 |
--no-cr |
--no-c |
-n)
989 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
990 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
993 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
994 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
995 |
--oldin |
--oldi |
--old |
--ol |
--o)
996 ac_prev
=oldincludedir
;;
997 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
998 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
999 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1000 oldincludedir
=$ac_optarg ;;
1002 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1004 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1005 prefix
=$ac_optarg ;;
1007 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1008 |
--program-pre |
--program-pr |
--program-p)
1009 ac_prev
=program_prefix
;;
1010 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1011 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1012 program_prefix
=$ac_optarg ;;
1014 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1015 |
--program-suf |
--program-su |
--program-s)
1016 ac_prev
=program_suffix
;;
1017 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1018 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1019 program_suffix
=$ac_optarg ;;
1021 -program-transform-name |
--program-transform-name \
1022 |
--program-transform-nam |
--program-transform-na \
1023 |
--program-transform-n |
--program-transform- \
1024 |
--program-transform |
--program-transfor \
1025 |
--program-transfo |
--program-transf \
1026 |
--program-trans |
--program-tran \
1027 |
--progr-tra |
--program-tr |
--program-t)
1028 ac_prev
=program_transform_name
;;
1029 -program-transform-name=* |
--program-transform-name=* \
1030 |
--program-transform-nam=* |
--program-transform-na=* \
1031 |
--program-transform-n=* |
--program-transform-=* \
1032 |
--program-transform=* |
--program-transfor=* \
1033 |
--program-transfo=* |
--program-transf=* \
1034 |
--program-trans=* |
--program-tran=* \
1035 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1036 program_transform_name
=$ac_optarg ;;
1038 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1040 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1041 pdfdir
=$ac_optarg ;;
1043 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1045 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1048 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1049 |
-silent |
--silent |
--silen |
--sile |
--sil)
1052 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1054 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1056 sbindir
=$ac_optarg ;;
1058 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1059 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1060 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1062 ac_prev
=sharedstatedir
;;
1063 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1064 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1065 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1067 sharedstatedir
=$ac_optarg ;;
1069 -site |
--site |
--sit)
1071 -site=* |
--site=* |
--sit=*)
1074 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1076 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1077 srcdir
=$ac_optarg ;;
1079 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1080 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1081 ac_prev
=sysconfdir
;;
1082 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1083 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1084 sysconfdir
=$ac_optarg ;;
1086 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1087 ac_prev
=target_alias
;;
1088 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1089 target_alias
=$ac_optarg ;;
1091 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1094 -version |
--version |
--versio |
--versi |
--vers |
-V)
1095 ac_init_version
=: ;;
1098 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 as_fn_error $?
"invalid package name: $ac_useropt"
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval with_
$ac_useropt=\
$ac_optarg ;;
1113 -without-* |
--without-*)
1114 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error $?
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=no
;;
1130 # Obsolete; use --with-x.
1133 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1134 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1135 ac_prev
=x_includes
;;
1136 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1137 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1138 x_includes
=$ac_optarg ;;
1140 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1141 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1142 ac_prev
=x_libraries
;;
1143 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1144 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1145 x_libraries
=$ac_optarg ;;
1147 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1152 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1156 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1158 eval $ac_envvar=\
$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 if test -n "$ac_prev"; then
1173 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $?
"missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1180 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 # Check all directory arguments for consistency.
1186 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val
=\$
$ac_var
1192 # Remove trailing slashes.
1195 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\
$ac_val;;
1198 # Be sure to have absolute directory names.
1200 [\\/$
]* | ?
:[\\/]* ) continue;;
1201 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1203 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1211 target
=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x
; then
1215 if test "x$build_alias" = x
; then
1216 cross_compiling
=maybe
1217 elif test "x$build_alias" != "x$host_alias"; then
1223 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1225 test "$silent" = yes && exec 6>/dev
/null
1228 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di
=`ls -di .` &&
1230 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error $?
"working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error $?
"pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted
=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir
=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted
=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1272 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1286 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 for ac_var
in $ac_precious_vars; do
1289 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1291 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1302 \`configure' configures this package to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking ...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1360 --build=BUILD configure
for building on BUILD
[guessed
]
1361 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1362 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1366 if test -n "$ac_init_help"; then
1371 --disable-option-checking ignore unrecognized
--enable/--with options
1372 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1373 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1374 --disable-largefile omit support
for large files
1375 --disable-protochain disable
\"protochain
\" insn
1376 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1377 getaddrinfo available
]
1378 --enable-optimizer-dbg build optimizer debugging code
1379 --enable-yydebug build parser debugging code
1380 --disable-universal don
't build universal on OS X
1381 --enable-shared build shared libraries [default=yes, if support
1383 --enable-bluetooth enable Bluetooth support [default=yes, if support
1385 --enable-canusb enable canusb support [default=yes, if support
1387 --enable-can enable CAN support [default=yes, if support
1389 --enable-dbus enable D-Bus capture support [default=yes, if
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --without-gcc don't use gcc
1396 --with-sita include SITA support
1397 --with-pcap=TYPE use packet capture TYPE
1398 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1400 --with-dag[=DIR
] include Endace DAG support
["yes", "no" or DIR
;
1401 default
="yes" on BSD and Linux
if present
]
1402 --with-dag-includes=DIR Endace DAG include directory
1403 --with-dag-libraries=DIR
1404 Endace DAG library directory
1405 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1406 supplied
).
[default
=yes, on Linux
, if present
]
1407 --with-snf[=DIR
] include Myricom SNF support
["yes", "no" or DIR
;
1408 default
="yes" on BSD and Linux
if present
]
1409 --with-snf-includes=DIR Myricom SNF include directory
1410 --with-snf-libraries=DIR
1411 Myricom SNF library directory
1412 --without-flex don
't use flex
1413 --without-bison don't use bison
1415 Some influential environment variables
:
1416 CC C compiler
command
1417 CFLAGS C compiler flags
1418 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1419 nonstandard directory
<lib dir
>
1420 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1421 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1422 you have headers
in a nonstandard directory
<include dir
>
1425 Use these variables to override the choices made by
`configure' or to help
1426 it to find libraries and programs with nonstandard names/locations.
1428 Report bugs to the package provider.
1433 if test "$ac_init_help" = "recursive"; then
1434 # If there are subdirs, report their specific --help.
1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436 test -d "$ac_dir" ||
1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1445 # A ".." for each directory in $ac_dir_suffix.
1446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1447 case $ac_top_builddir_sub in
1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452 ac_abs_top_builddir=$ac_pwd
1453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454 # for backward compatibility:
1455 ac_top_builddir=$ac_top_build_prefix
1458 .) # We are building in place.
1460 ac_top_srcdir=$ac_top_builddir_sub
1461 ac_abs_top_srcdir=$ac_pwd ;;
1462 [\\/]* | ?:[\\/]* ) # Absolute name.
1463 ac_srcdir=$srcdir$ac_dir_suffix;
1464 ac_top_srcdir=$srcdir
1465 ac_abs_top_srcdir=$srcdir ;;
1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468 ac_top_srcdir=$ac_top_build_prefix$srcdir
1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473 cd "$ac_dir" || { ac_status=$?; continue; }
1474 # Check for guested configure.
1475 if test -f "$ac_srcdir/configure.gnu"; then
1477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478 elif test -f "$ac_srcdir/configure"; then
1480 $SHELL "$ac_srcdir/configure" --help=recursive
1482 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 cd "$ac_pwd" || { ac_status=$?; break; }
1488 test -n "$ac_init_help" && exit $ac_status
1489 if $ac_init_version; then
1492 generated by GNU Autoconf 2.69
1494 Copyright (C) 2012 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1501 ## ------------------------ ##
1502 ## Autoconf initialization. ##
1503 ## ------------------------ ##
1505 # ac_fn_c_try_compile LINENO
1506 # --------------------------
1507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_compile ()
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext
1512 if { { ac_try="$ac_compile"
1514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1515 *) ac_try_echo
=$ac_try;;
1517 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_compile") 2>conftest.err
1521 if test -s conftest.err
; then
1522 grep -v '^ *+' conftest.err
>conftest.er1
1523 cat conftest.er1
>&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest.
$ac_objext; then :
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.
$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status
$ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_c_try_cpp LINENO
1544 # ----------------------
1545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1549 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } > conftest.i && {
1565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1580 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1581 # -------------------------------------------------------
1582 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1583 # the include files in INCLUDES and setting the cache variable VAR
1585 ac_fn_c_check_header_mongrel ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if eval \${$3+:} false; then :
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590 $as_echo_n "checking for $2... " >&6; }
1591 if eval \${$3+:} false; then :
1592 $as_echo_n "(cached) " >&6
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1598 # Is the header compilable?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1600 $as_echo_n "checking $2 usability... " >&6; }
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1606 if ac_fn_c_try_compile "$LINENO"; then :
1607 ac_header_compiler=yes
1609 ac_header_compiler=no
1611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1613 $as_echo "$ac_header_compiler" >&6; }
1615 # Is the header present?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1617 $as_echo_n "checking $2 presence... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1622 if ac_fn_c_try_cpp "$LINENO"; then :
1623 ac_header_preproc=yes
1625 ac_header_preproc=no
1627 rm -f conftest.err conftest.i conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1629 $as_echo "$ac_header_preproc" >&6; }
1631 # So? What about this header?
1632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1635 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1641 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1643 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1645 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1647 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1657 eval "$3=\$ac_header_compiler"
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_header_mongrel
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=$ac_status
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1726 if ac_fn_c_try_compile "$LINENO"; then :
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 } # ac_fn_c_check_header_compile
1740 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1741 # -------------------------------------------
1742 # Tests whether TYPE exists after having included INCLUDES, setting cache
1743 # variable VAR accordingly.
1744 ac_fn_c_check_type ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_type
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err
; then
1811 grep -v '^ *+' conftest.err
>conftest.er1
1812 cat conftest.er1
>&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest
$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest
$ac_exeext
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.
$ac_ext >&5
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status
$ac_retval
1838 } # ac_fn_c_try_link
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \
${$3+:} false
; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1863 # include <limits.h>
1865 # include <assert.h>
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1892 if ac_fn_c_try_link
"$LINENO"; then :
1897 rm -f core conftest.err conftest.
$ac_objext \
1898 conftest
$ac_exeext conftest.
$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_func
1907 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1908 # ---------------------------------------------
1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1911 ac_fn_c_check_decl
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1915 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1917 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1918 if eval \
${$3+:} false
; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1927 #ifndef $as_decl_name
1929 (void) $as_decl_use;
1931 (void) $as_decl_name;
1939 if ac_fn_c_try_compile
"$LINENO"; then :
1944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 } # ac_fn_c_check_decl
1952 cat >config.log
<<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1956 It was created by $as_me, which was
1957 generated by GNU Autoconf 2.69. Invocation command line was
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 $as_echo "PATH: $as_dir"
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_must_keep_next
=false
2023 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2025 |
-silent |
--silent |
--silen |
--sile |
--sil)
2028 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2033 as_fn_append ac_configure_args1
" '$ac_arg'"
2034 if test $ac_must_keep_next = true
; then
2035 ac_must_keep_next
=false
# Got value, back to normal.
2038 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2039 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2040 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2041 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 -* ) ac_must_keep_next
=true
;;
2049 as_fn_append ac_configure_args
" '$ac_arg'"
2054 { ac_configure_args0
=; unset ac_configure_args0
;}
2055 { ac_configure_args1
=; unset ac_configure_args1
;}
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2071 # The following way of writing the cache mishandles newlines in values,
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2107 for ac_var in $ac_subst_vars
2109 eval ac_val=\$$ac_var
2111 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 $as_echo "$ac_var='\''$ac_val'\''"
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2122 for ac_var
in $ac_subst_files
2124 eval ac_val
=\$
$ac_var
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 $as_echo "$ac_var='\''$ac_val'\''"
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 for ac_signal
in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest
* confdefs.h
2157 $as_echo "/* confdefs.h */" > confdefs.h
2159 # Predefined preprocessor variables.
2161 cat >>confdefs.h
<<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 cat >>confdefs.h
<<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 cat >>confdefs.h
<<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 cat >>confdefs.h
<<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 cat >>confdefs.h
<<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2194 */*) ac_site_file1
=$CONFIG_SITE;;
2195 *) ac_site_file1
=.
/$CONFIG_SITE;;
2197 elif test "x$prefix" != xNONE
; then
2198 ac_site_file1
=$prefix/share
/config.site
2199 ac_site_file2
=$prefix/etc
/config.site
2201 ac_site_file1
=$ac_default_prefix/share
/config.site
2202 ac_site_file2
=$ac_default_prefix/etc
/config.site
2204 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2206 test "x$ac_site_file" = xNONE
&& continue
2207 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2212 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $?
"failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2227 *) .
"./$cache_file";;
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 # Check that the precious variables saved in the cache have kept the same
2238 ac_cache_corrupted
=false
2239 for ac_var
in $ac_precious_vars; do
2240 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2241 eval ac_new_set
=\
$ac_env_${ac_var}_set
2242 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2243 eval ac_new_val
=\
$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted
=: ;;
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted
=: ;;
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w
=`echo x $ac_old_val`
2258 ac_new_val_w
=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted
=:
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\
$ac_old_val
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2277 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg
=$ac_var=$ac_new_val ;;
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2298 ac_cpp
='$CPP $CPPFLAGS'
2299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2306 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2307 if test -f "$ac_dir/install-sh"; then
2309 ac_install_sh
="$ac_aux_dir/install-sh -c"
2311 elif test -f "$ac_dir/install.sh"; then
2313 ac_install_sh
="$ac_aux_dir/install.sh -c"
2315 elif test -f "$ac_dir/shtool"; then
2317 ac_install_sh
="$ac_aux_dir/shtool install -c"
2321 if test -z "$ac_aux_dir"; then
2322 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2330 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2331 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334 # Make sure we can run config.sub.
2335 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2336 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2339 $as_echo_n "checking build system type... " >&6; }
2340 if ${ac_cv_build+:} false
; then :
2341 $as_echo_n "(cached) " >&6
2343 ac_build_alias
=$build_alias
2344 test "x$ac_build_alias" = x
&&
2345 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2346 test "x$ac_build_alias" = x
&&
2347 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2348 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2349 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2353 $as_echo "$ac_cv_build" >&6; }
2354 case $ac_cv_build in
2356 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2359 ac_save_IFS
=$IFS; IFS
='-'
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2369 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2373 $as_echo_n "checking host system type... " >&6; }
2374 if ${ac_cv_host+:} false
; then :
2375 $as_echo_n "(cached) " >&6
2377 if test "x$host_alias" = x
; then
2378 ac_cv_host
=$ac_cv_build
2380 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2381 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2386 $as_echo "$ac_cv_host" >&6; }
2389 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2392 ac_save_IFS
=$IFS; IFS
='-'
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2402 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2406 $as_echo_n "checking target system type... " >&6; }
2407 if ${ac_cv_target+:} false
; then :
2408 $as_echo_n "(cached) " >&6
2410 if test "x$target_alias" = x
; then
2411 ac_cv_target
=$ac_cv_host
2413 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2414 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2419 $as_echo "$ac_cv_target" >&6; }
2420 case $ac_cv_target in
2422 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2424 target
=$ac_cv_target
2425 ac_save_IFS
=$IFS; IFS
='-'
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2435 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2438 # The aliases save the names the user supplied, while $host etc.
2439 # will get canonicalized.
2440 test -n "$target_alias" &&
2441 test "$program_prefix$program_suffix$program_transform_name" = \
2443 program_prefix
=${target_alias}-
2452 # Check whether --with-gcc was given.
2453 if test "${with_gcc+set}" = set; then :
2458 if test "${srcdir}" != "." ; then
2459 V_CCOPT
="-I\$(srcdir)"
2461 if test "${CFLAGS+set}" = set; then
2462 LBL_CFLAGS
="$CFLAGS"
2464 if test -z "$CC" ; then
2468 # Extract the first word of "shlicc2", so it can be a program name with args.
2469 set dummy shlicc2
; ac_word
=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if ${ac_cv_prog_SHLICC2+:} false
; then :
2473 $as_echo_n "(cached) " >&6
2475 if test -n "$SHLICC2"; then
2476 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
2478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir
=.
2483 for ac_exec_ext
in '' $ac_executable_extensions; do
2484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_SHLICC2
="yes"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
2496 SHLICC2
=$ac_cv_prog_SHLICC2
2497 if test -n "$SHLICC2"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2499 $as_echo "$SHLICC2" >&6; }
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2506 if test $SHLICC2 = yes ; then
2513 if test -z "$CC" -a "$with_gcc" = no
; then
2519 ac_cpp
='$CPP $CPPFLAGS'
2520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2525 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if ${ac_cv_prog_CC+:} false
; then :
2529 $as_echo_n "(cached) " >&6
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC
="$CC" # Let the user override the test.
2534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir
=.
2539 for ac_exec_ext
in '' $ac_executable_extensions; do
2540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 if test -n "$CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2554 $as_echo "$CC" >&6; }
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2562 if test -z "$ac_cv_prog_CC"; then
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc
; ac_word
=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir
=.
2579 for ac_exec_ext
in '' $ac_executable_extensions; do
2580 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_ac_ct_CC
="gcc"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2594 $as_echo "$ac_ct_CC" >&6; }
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2600 if test "x$ac_ct_CC" = x
; then
2603 case $cross_compiling:$ac_tool_warned in
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned
=yes ;;
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2618 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_CC+:} false
; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC
="$CC" # Let the user override the test.
2627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir
=.
2632 for ac_exec_ext
in '' $ac_executable_extensions; do
2633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2634 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test -n "$CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2647 $as_echo "$CC" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2656 if test -z "$CC"; then
2657 # Extract the first word of "cc", so it can be a program name with args.
2658 set dummy cc
; ac_word
=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_CC+:} false
; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC
="$CC" # Let the user override the test.
2668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir
=.
2673 for ac_exec_ext
in '' $ac_executable_extensions; do
2674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2676 ac_prog_rejected
=yes
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test $ac_prog_rejected = yes; then
2688 # We found a bogon in the path, so make sure we never use it.
2689 set dummy
$ac_cv_prog_CC
2691 if test $# != 0; then
2692 # We chose a different compiler from the bogus one.
2693 # However, it has the same basename, so the bogon will be chosen
2694 # first if we set CC to just the basename; use the full file name.
2696 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 for ac_prog
in cl.exe
2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2717 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false
; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC
="$CC" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$CC" && break
2756 if test -z "$CC"; then
2758 for ac_prog
in cl.exe
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy
$ac_prog; ac_word
=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_CC
="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2797 test -n "$ac_ct_CC" && break
2800 if test "x$ac_ct_CC" = x
; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned
=yes ;;
2816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $?
"no acceptable C compiler found in \$PATH
2819 See \`config.log' for more details" "$LINENO" 5; }
2821 # Provide some information about the compiler.
2822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2825 for ac_option
in --version -v -V -qversion; do
2826 { { ac_try
="$ac_compiler $ac_option >&5"
2828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832 $as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2835 if test -s conftest.err; then
2837 ... rest of stderr output deleted ...
2838 10q' conftest.err >conftest.er1
2839 cat conftest.er1 >&5
2841 rm -f conftest.er1 conftest.err
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2857 ac_clean_files_save=$ac_clean_files
2858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2859 # Try to create an executable without -o first, disregard a.out.
2860 # It will help us diagnose broken compilers, and finding out an intuition
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2863 $as_echo_n "checking whether the C compiler works... " >&6; }
2864 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2866 # The possible output files:
2867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2870 for ac_file in $ac_files
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2879 if { { ac_try="$ac_link_default"
2881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2882 *) ac_try_echo
=$ac_try;;
2884 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link_default") 2>&5
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2893 # so that the user can short-circuit this test for compilers unknown to
2895 for ac_file
in $ac_files ''
2897 test -f "$ac_file" ||
continue
2899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2902 # We found the default executable, but exeext='' is most
2906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2908 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2910 # We set ac_cv_exeext here because the later test for it is not
2911 # safe: cross compilers may not add the suffix if given an `-o'
2912 # argument, so we may need to know it at that point already.
2913 # Even if this section looks crufty: it has the advantage of
2920 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2925 if test -z "$ac_file"; then :
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 $as_echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.
$ac_ext >&5
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error
77 "C compiler cannot create executables
2934 See \`config.log' for more details" "$LINENO" 5; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 $as_echo "yes" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2940 $as_echo_n "checking for C compiler default output file name... " >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2942 $as_echo "$ac_file" >&6; }
2943 ac_exeext
=$ac_cv_exeext
2945 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2946 ac_clean_files
=$ac_clean_files_save
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2948 $as_echo_n "checking for suffix of executables... " >&6; }
2949 if { { ac_try
="$ac_link"
2951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_link") 2>&5
2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959 test $ac_status = 0; }; then :
2960 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2961 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2962 # work properly (i.e., refer to `conftest.exe'), while it won't with
2964 for ac_file
in conftest.exe conftest conftest.
*; do
2965 test -f "$ac_file" ||
continue
2967 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2968 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 rm -f conftest conftest
$ac_cv_exeext
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2981 $as_echo "$ac_cv_exeext" >&6; }
2983 rm -f conftest.
$ac_ext
2984 EXEEXT
=$ac_cv_exeext
2986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2992 FILE *f = fopen ("conftest.out", "w");
2993 return ferror (f) || fclose (f) != 0;
2999 ac_clean_files
="$ac_clean_files conftest.out"
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3003 $as_echo_n "checking whether we are cross compiling... " >&6; }
3004 if test "$cross_compiling" != yes; then
3005 { { ac_try
="$ac_link"
3007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011 $as_echo "$ac_try_echo"; } >&5
3012 (eval "$ac_link") 2>&5
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; }
3016 if { ac_try='./conftest$ac_cv_exeext'
3017 { { case "(($ac_try" in
3018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3019 *) ac_try_echo
=$ac_try;;
3021 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3022 $as_echo "$ac_try_echo"; } >&5
3023 (eval "$ac_try") 2>&5
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }; }; then
3029 if test "$cross_compiling" = maybe
; then
3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 as_fn_error $?
"cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details" "$LINENO" 5; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3041 $as_echo "$cross_compiling" >&6; }
3043 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3044 ac_clean_files
=$ac_clean_files_save
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3046 $as_echo_n "checking for suffix of object files... " >&6; }
3047 if ${ac_cv_objext+:} false
; then :
3048 $as_echo_n "(cached) " >&6
3050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3061 rm -f conftest.o conftest.obj
3062 if { { ac_try
="$ac_compile"
3064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_compile") 2>&5
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; then :
3073 for ac_file in conftest.o conftest.obj conftest.*; do
3074 test -f "$ac_file" || continue;
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3088 See \
`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3093 $as_echo "$ac_cv_objext" >&6; }
3094 OBJEXT=$ac_cv_objext
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3098 if ${ac_cv_c_compiler_gnu+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3115 if ac_fn_c_try_compile "$LINENO"; then :
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3126 if test $ac_compiler_gnu = yes; then
3131 ac_test_CFLAGS=${CFLAGS+set}
3132 ac_save_CFLAGS=$CFLAGS
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3135 if ${ac_cv_prog_cc_g+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 ac_save_c_werror_flag=$ac_c_werror_flag
3139 ac_c_werror_flag=yes
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 if ac_fn_c_try_compile "$LINENO"; then :
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3171 ac_c_werror_flag=$ac_save_c_werror_flag
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 if ac_fn_c_try_compile "$LINENO"; then :
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3195 $as_echo "$ac_cv_prog_cc_g" >&6; }
3196 if test "$ac_test_CFLAGS" = set; then
3197 CFLAGS=$ac_save_CFLAGS
3198 elif test $ac_cv_prog_cc_g = yes; then
3199 if test "$GCC" = yes; then
3205 if test "$GCC" = yes; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3213 if ${ac_cv_prog_cc_c89+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 ac_cv_prog_cc_c89=no
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_c89=$ac_arg
3277 rm -f core conftest.err conftest.$ac_objext
3278 test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 rm -f conftest.$ac_ext
3285 case "x$ac_cv_prog_cc_c89" in
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3288 $as_echo "none needed" >&6; } ;;
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3291 $as_echo "unsupported" >&6; } ;;
3293 CC="$CC $ac_cv_prog_cc_c89"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3295 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3297 if test "x$ac_cv_prog_cc_c89" != xno; then :
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311 if test "$GCC" = yes ; then
3313 # -Werror forces warnings to be errors.
3315 ac_lbl_cc_force_warning_errors=-Werror
3317 V_INCLS="$V_INCLS -I/usr/local/include"
3318 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3324 # This is assumed either to be GCC or clang, both
3325 # of which use -Werror to force warnings to be errors.
3327 ac_lbl_cc_force_warning_errors=-Werror
3332 # HP C, which is what we presume we're using, doesn't
3333 # exit with a non-zero exit status if we hand it an
3334 # invalid -W flag, can't be forced to do so even with
3335 # +We, and doesn't handle GCC-style -W flags, so we
3336 # don't want to try using GCC-style -W flags.
3338 ac_lbl_cc_dont_try_gcc_dashW=yes
3343 # MIPS C, which is what we presume we're using, doesn't
3344 # necessarily exit with a non-zero exit status if we
3345 # hand it an invalid -W flag, can't be forced to do
3346 # so, and doesn't handle GCC-style -W flags, so we
3347 # don't want to try using GCC-style -W flags.
3349 ac_lbl_cc_dont_try_gcc_dashW=yes
3351 # It also, apparently, defaults to "char" being
3352 # unsigned, unlike most other C implementations;
3353 # I suppose we could say "signed char" whenever
3354 # we want to guarantee a signed "char", but let's
3355 # just force signed chars.
3357 # -xansi is normally the default, but the
3358 # configure script was setting it; perhaps -cckr
3359 # was the default in the Old Days. (Then again,
3360 # that would probably be for backwards compatibility
3361 # in the days when ANSI C was Shiny and New, i.e.
3362 # 1989 and the early '90's, so maybe we can just
3363 # drop support for those compilers.)
3365 # -g is equivalent to -g2, which turns off
3366 # optimization; we choose -g3, which generates
3367 # debugging information but doesn't turn off
3368 # optimization (even if the optimization would
3369 # cause inaccuracies in debugging).
3371 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3376 # Presumed to be DEC OSF/1, Digital UNIX, or
3379 # The DEC C compiler, which is what we presume we're
3380 # using, doesn't exit with a non-zero exit status if we
3381 # hand it an invalid -W flag, can't be forced to do
3382 # so, and doesn't handle GCC-style -W flags, so we
3383 # don't want to try using GCC-style -W flags.
3385 ac_lbl_cc_dont_try_gcc_dashW=yes
3387 # -g is equivalent to -g2, which turns off
3388 # optimization; we choose -g3, which generates
3389 # debugging information but doesn't turn off
3390 # optimization (even if the optimization would
3391 # cause inaccuracies in debugging).
3393 V_CCOPT="$V_CCOPT -g3"
3398 # Assumed to be Sun C, which requires -errwarn to force
3399 # warnings to be treated as errors.
3401 ac_lbl_cc_force_warning_errors=-errwarn
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3406 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3407 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3408 $as_echo_n "(cached) " >&6
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #include <sys/types.h>
3417 struct a { int b; };
3418 void c(const struct a *)
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_lbl_cc_const_proto=yes
3426 ac_cv_lbl_cc_const_proto=no
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3432 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3433 if test $ac_cv_lbl_cc_const_proto = no ; then
3435 $as_echo "#define const /**/" >>confdefs.h
3440 V_CCOPT="$V_CCOPT -O"
3444 if test "$GCC" = yes ; then
3446 # On platforms where we build a shared library:
3448 # add options to generate position-independent code,
3449 # if necessary (it's the default in AIX and Darwin/OS X);
3451 # define option to set the soname of the shared library,
3452 # if the OS supports that;
3454 # add options to specify, at link time, a directory to
3455 # add to the run-time search path, if that's necessary.
3457 V_SHLIB_CMD="\$(CC)"
3458 V_SHLIB_OPT="-shared"
3464 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3466 # Platforms where the linker is the GNU linker
3467 # or accepts command-line arguments like
3468 # those the GNU linker accepts.
3470 # Some instruction sets require -fPIC on some
3471 # operating systems. Check for them. If you
3472 # have a combination that requires it, add it
3487 V_CCOPT="$V_CCOPT $PIC_OPT"
3488 V_SONAME_OPT="-Wl,-soname,"
3489 V_RPATH_OPT="-Wl,-rpath,"
3493 V_CCOPT="$V_CCOPT -fpic"
3495 # XXX - this assumes GCC is using the HP linker,
3496 # rather than the GNU linker, and that the "+h"
3497 # option is used on all HP-UX platforms, both .sl
3500 V_SONAME_OPT="-Wl,+h,"
3502 # By default, directories specifed with -L
3503 # are added to the run-time search path, so
3504 # we don't add them in pcap-config.
3509 V_CCOPT="$V_CCOPT -fpic"
3511 # XXX - this assumes GCC is using the Sun linker,
3512 # rather than the GNU linker.
3514 V_SONAME_OPT="-Wl,-h,"
3515 V_RPATH_OPT="-Wl,-R,"
3520 # Set the appropriate compiler flags and, on platforms
3521 # where we build a shared library:
3523 # add options to generate position-independent code,
3524 # if necessary (it's the default in Darwin/OS X);
3526 # if we generate ".so" shared libraries, define the
3527 # appropriate options for building the shared library;
3529 # add options to specify, at link time, a directory to
3530 # add to the run-time search path, if that's necessary.
3532 # Note: spaces after V_SONAME_OPT are significant; on
3533 # some platforms the soname is passed with a GCC-like
3534 # "-Wl,-soname,{soname}" option, with the soname part
3535 # of the option, while on other platforms the C compiler
3536 # driver takes it as a regular option with the soname
3537 # following the option. The same applies to V_RPATH_OPT.
3542 V_SHLIB_CMD="\$(CC)"
3543 V_SHLIB_OPT="-G -bnoentry -bexpall"
3546 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3550 V_CCOPT="$V_CCOPT -fpic"
3551 V_SHLIB_CMD="\$(CC)"
3552 V_SHLIB_OPT="-shared"
3553 V_SONAME_OPT="-Wl,-soname,"
3554 V_RPATH_OPT="-Wl,-rpath,"
3558 V_CCOPT="$V_CCOPT +z"
3559 V_SHLIB_CMD="\$(LD)"
3563 # By default, directories specifed with -L
3564 # are added to the run-time search path, so
3565 # we don't add them in pcap-config.
3571 # Presumed to be DEC OSF/1, Digital UNIX, or
3574 V_SHLIB_CMD="\$(CC)"
3575 V_SHLIB_OPT="-shared"
3576 V_SONAME_OPT="-soname "
3577 V_RPATH_OPT="-rpath "
3581 V_CCOPT="$V_CCOPT -Kpic"
3582 V_SHLIB_CMD="\$(CC)"
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3591 $as_echo_n "checking for inline... " >&6; }
3592 save_CFLAGS="$CFLAGS"
3594 if ${ac_cv_lbl_inline+:} false; then :
3595 $as_echo_n "(cached) " >&6
3600 for ac_lbl_inline in inline __inline__ __inline
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #define inline $ac_lbl_inline
3605 static inline struct iltest *foo(void);
3611 static inline struct iltest *
3614 static struct iltest xxx;
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627 ac_lbl_cc_inline=yes
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 if test "$ac_lbl_cc_inline" = yes ; then
3634 if test "$ac_lbl_cc_inline" = yes ; then
3635 ac_cv_lbl_inline=$ac_lbl_inline
3639 CFLAGS="$save_CFLAGS"
3640 if test ! -z "$ac_cv_lbl_inline" ; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3642 $as_echo "$ac_cv_lbl_inline" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3648 cat >>confdefs.h <<_ACEOF
3649 #define inline $ac_cv_lbl_inline
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3654 $as_echo_n "checking for __attribute__... " >&6; }
3655 if ${ac_cv___attribute__+:} false; then :
3656 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3665 static void foo(void) __attribute__ ((noreturn));
3674 main(int argc, char **argv)
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_cv___attribute__=yes
3683 ac_cv___attribute__=no
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 if test "$ac_cv___attribute__" = "yes"; then
3690 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3694 # We can't use __attribute__, so we can't use __attribute__((unused)),
3695 # so we define _U_ to an empty string.
3697 V_DEFS="$V_DEFS -D_U_=\"\""
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3700 $as_echo "$ac_cv___attribute__" >&6; }
3702 if test "$ac_cv___attribute__" = "yes"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3705 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3706 if ${ac_cv___attribute___unused+:} false; then :
3707 $as_echo_n "(cached) " >&6
3710 save_CFLAGS="$CFLAGS"
3711 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3720 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3722 printf("Hello, world!\n");
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv___attribute___unused=yes
3730 ac_cv___attribute___unused=no
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 CFLAGS="$save_CFLAGS"
3736 if test "$ac_cv___attribute___unused" = "yes"; then
3737 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3739 V_DEFS="$V_DEFS -D_U_=\"\""
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3742 $as_echo "$ac_cv___attribute___unused" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) can be used without warnings" >&5
3746 $as_echo_n "checking whether __attribute__((format)) can be used without warnings... " >&6; }
3747 if ${ac_cv___attribute___format+:} false; then :
3748 $as_echo_n "(cached) " >&6
3751 save_CFLAGS="$CFLAGS"
3752 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3759 extern int foo(const char *fmt, ...)
3760 __attribute__ ((format (printf, 1, 2)));
3763 main(int argc, char **argv)
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv___attribute___format=yes
3772 ac_cv___attribute___format=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 CFLAGS="$save_CFLAGS"
3778 if test "$ac_cv___attribute___format" = "yes"; then
3780 $as_echo "#define __ATTRIBUTE___FORMAT_OK 1" >>confdefs.h
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___format" >&5
3784 $as_echo "$ac_cv___attribute___format" >&6; }
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3795 # On Suns, sometimes $CPP names a directory.
3796 if test -n "$CPP" && test -d "$CPP"; then
3799 if test -z "$CPP"; then
3800 if ${ac_cv_prog_CPP+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 # Double quotes because CPP needs to be expanded
3804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807 for ac_c_preproc_warn_flag in '' yes
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3818 # include <limits.h>
3820 # include <assert.h>
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3827 # Broken: fails on valid input.
3830 rm -f conftest.err conftest.i conftest.$ac_ext
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3838 if ac_fn_c_try_cpp "$LINENO"; then :
3839 # Broken: success on invalid input.
3842 # Passes both tests.
3846 rm -f conftest.err conftest.i conftest.$ac_ext
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.i conftest.err conftest.
$ac_ext
3851 if $ac_preproc_ok; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3864 $as_echo "$CPP" >&6; }
3866 for ac_c_preproc_warn_flag
in '' yes
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3877 # include <limits.h>
3879 # include <assert.h>
3883 if ac_fn_c_try_cpp
"$LINENO"; then :
3886 # Broken: fails on valid input.
3889 rm -f conftest.err conftest.i conftest.
$ac_ext
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <ac_nonexistent.h>
3897 if ac_fn_c_try_cpp
"$LINENO"; then :
3898 # Broken: success on invalid input.
3901 # Passes both tests.
3905 rm -f conftest.err conftest.i conftest.
$ac_ext
3908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3909 rm -f conftest.i conftest.err conftest.
$ac_ext
3910 if $ac_preproc_ok; then :
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3916 See \`config.log' for more details" "$LINENO" 5; }
3920 ac_cpp
='$CPP $CPPFLAGS'
3921 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3928 if ${ac_cv_path_GREP+:} false
; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -z "$GREP"; then
3932 ac_path_GREP_found
=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3935 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3938 test -z "$as_dir" && as_dir
=.
3939 for ac_prog
in grep ggrep
; do
3940 for ac_exec_ext
in '' $ac_executable_extensions; do
3941 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3942 as_fn_executable_p
"$ac_path_GREP" ||
continue
3943 # Check for GNU ac_path_GREP and select it if it is found.
3944 # Check for GNU $ac_path_GREP
3945 case `"$ac_path_GREP" --version 2>&1` in
3947 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3950 $as_echo_n 0123456789 >"conftest.in"
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo 'GREP' >> "conftest.nl"
3957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3958 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3959 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_GREP
="$ac_path_GREP"
3963 ac_path_GREP_max
=$ac_count
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3968 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3971 $ac_path_GREP_found && break 3
3976 if test -z "$ac_cv_path_GREP"; then
3977 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 ac_cv_path_GREP
=$GREP
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3985 $as_echo "$ac_cv_path_GREP" >&6; }
3986 GREP
="$ac_cv_path_GREP"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3990 $as_echo_n "checking for egrep... " >&6; }
3991 if ${ac_cv_path_EGREP+:} false
; then :
3992 $as_echo_n "(cached) " >&6
3994 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3995 then ac_cv_path_EGREP
="$GREP -E"
3997 if test -z "$EGREP"; then
3998 ac_path_EGREP_found
=false
3999 # Loop through the user's path and test for each of PROGNAME-LIST
4000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4001 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4004 test -z "$as_dir" && as_dir
=.
4005 for ac_prog
in egrep; do
4006 for ac_exec_ext
in '' $ac_executable_extensions; do
4007 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4008 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4009 # Check for GNU ac_path_EGREP and select it if it is found.
4010 # Check for GNU $ac_path_EGREP
4011 case `"$ac_path_EGREP" --version 2>&1` in
4013 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4016 $as_echo_n 0123456789 >"conftest.in"
4019 cat "conftest.in" "conftest.in" >"conftest.tmp"
4020 mv "conftest.tmp" "conftest.in"
4021 cp "conftest.in" "conftest.nl"
4022 $as_echo 'EGREP' >> "conftest.nl"
4023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4024 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4025 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4027 # Best one so far, save it but keep looking for a better one
4028 ac_cv_path_EGREP
="$ac_path_EGREP"
4029 ac_path_EGREP_max
=$ac_count
4031 # 10*(2^10) chars as input seems more than enough
4032 test $ac_count -gt 10 && break
4034 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4037 $ac_path_EGREP_found && break 3
4042 if test -z "$ac_cv_path_EGREP"; then
4043 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 ac_cv_path_EGREP
=$EGREP
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4052 $as_echo "$ac_cv_path_EGREP" >&6; }
4053 EGREP
="$ac_cv_path_EGREP"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4057 $as_echo_n "checking for ANSI C header files... " >&6; }
4058 if ${ac_cv_header_stdc+:} false
; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4076 if ac_fn_c_try_compile
"$LINENO"; then :
4077 ac_cv_header_stdc
=yes
4079 ac_cv_header_stdc
=no
4081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4083 if test $ac_cv_header_stdc = yes; then
4084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 $EGREP "memchr" >/dev
/null
2>&1; then :
4094 ac_cv_header_stdc
=no
4100 if test $ac_cv_header_stdc = yes; then
4101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "free" >/dev
/null
2>&1; then :
4111 ac_cv_header_stdc
=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119 if test "$cross_compiling" = yes; then :
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 #if ((' ' & 0x0FF) == 0x020)
4127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 # define ISLOWER(c) \
4131 (('a' <= (c) && (c) <= 'i') \
4132 || ('j' <= (c) && (c) <= 'r') \
4133 || ('s' <= (c) && (c) <= 'z'))
4134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i))
4144 || toupper (i) != TOUPPER (i))
4149 if ac_fn_c_try_run
"$LINENO"; then :
4152 ac_cv_header_stdc
=no
4154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4161 $as_echo "$ac_cv_header_stdc" >&6; }
4162 if test $ac_cv_header_stdc = yes; then
4164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4169 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4170 inttypes.h stdint.h unistd.h
4172 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4173 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4175 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4176 cat >>confdefs.h
<<_ACEOF
4177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 for ac_header
in sys
/bitypes.h
4187 ac_fn_c_check_header_mongrel
"$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4188 if test "x$ac_cv_header_sys_bitypes_h" = xyes
; then :
4189 cat >>confdefs.h
<<_ACEOF
4190 #define HAVE_SYS_BITYPES_H 1
4198 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4199 #ifdef HAVE_SYS_BITYPES_H
4200 #include <sys/bitypes.h>
4203 if test "x$ac_cv_type_int8_t" = xyes
; then :
4207 $as_echo "#define int8_t signed char" >>confdefs.h
4211 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4212 #ifdef HAVE_SYS_BITYPES_H
4213 #include <sys/bitypes.h>
4216 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
4220 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4224 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4225 if test "x$ac_cv_type_int16_t" = xyes
; then :
4229 $as_echo "#define int16_t short" >>confdefs.h
4231 $ac_includes_default
4232 #ifdef HAVE_SYS_BITYPES_H
4233 #include <sys/bitypes.h>
4237 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4238 #ifdef HAVE_SYS_BITYPES_H
4239 #include <sys/bitypes.h>
4242 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
4246 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4250 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4251 #ifdef HAVE_SYS_BITYPES_H
4252 #include <sys/bitypes.h>
4255 if test "x$ac_cv_type_int32_t" = xyes
; then :
4259 $as_echo "#define int32_t int" >>confdefs.h
4263 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4264 #ifdef HAVE_SYS_BITYPES_H
4265 #include <sys/bitypes.h>
4268 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
4272 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4276 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4277 #ifdef HAVE_SYS_BITYPES_H
4278 #include <sys/bitypes.h>
4281 if test "x$ac_cv_type_int64_t" = xyes
; then :
4285 $as_echo "#define int64_t long long" >>confdefs.h
4289 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4290 #ifdef HAVE_SYS_BITYPES_H
4291 #include <sys/bitypes.h>
4294 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
4298 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4304 # Try to arrange for large file support.
4306 # Check whether --enable-largefile was given.
4307 if test "${enable_largefile+set}" = set; then :
4308 enableval
=$enable_largefile;
4311 if test "$enable_largefile" != no
; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4314 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4315 if ${ac_cv_sys_largefile_CC+:} false
; then :
4316 $as_echo_n "(cached) " >&6
4318 ac_cv_sys_largefile_CC
=no
4319 if test "$GCC" != yes; then
4322 # IRIX 6.2 and later do not support large files by default,
4323 # so use the C compiler's -n32 option if that helps.
4324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <sys/types.h>
4327 /* Check that off_t can represent 2**63 - 1 correctly.
4328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4329 since some C++ compilers masquerading as C compilers
4330 incorrectly reject 9223372036854775807. */
4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4333 && LARGE_OFF_T % 2147483647 == 1)
4343 if ac_fn_c_try_compile
"$LINENO"; then :
4346 rm -f core conftest.err conftest.
$ac_objext
4348 if ac_fn_c_try_compile
"$LINENO"; then :
4349 ac_cv_sys_largefile_CC
=' -n32'; break
4351 rm -f core conftest.err conftest.
$ac_objext
4355 rm -f conftest.
$ac_ext
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4359 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4360 if test "$ac_cv_sys_largefile_CC" != no
; then
4361 CC
=$CC$ac_cv_sys_largefile_CC
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4365 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4366 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <sys/types.h>
4373 /* Check that off_t can represent 2**63 - 1 correctly.
4374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375 since some C++ compilers masquerading as C compilers
4376 incorrectly reject 9223372036854775807. */
4377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379 && LARGE_OFF_T % 2147483647 == 1)
4389 if ac_fn_c_try_compile
"$LINENO"; then :
4390 ac_cv_sys_file_offset_bits
=no
; break
4392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 #define _FILE_OFFSET_BITS 64
4396 #include <sys/types.h>
4397 /* Check that off_t can represent 2**63 - 1 correctly.
4398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4399 since some C++ compilers masquerading as C compilers
4400 incorrectly reject 9223372036854775807. */
4401 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4403 && LARGE_OFF_T % 2147483647 == 1)
4413 if ac_fn_c_try_compile
"$LINENO"; then :
4414 ac_cv_sys_file_offset_bits
=64; break
4416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4417 ac_cv_sys_file_offset_bits
=unknown
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4422 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4423 case $ac_cv_sys_file_offset_bits in #(
4426 cat >>confdefs.h
<<_ACEOF
4427 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4432 if test $ac_cv_sys_file_offset_bits = unknown
; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4434 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4435 if ${ac_cv_sys_large_files+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <sys/types.h>
4442 /* Check that off_t can represent 2**63 - 1 correctly.
4443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4444 since some C++ compilers masquerading as C compilers
4445 incorrectly reject 9223372036854775807. */
4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4448 && LARGE_OFF_T % 2147483647 == 1)
4458 if ac_fn_c_try_compile
"$LINENO"; then :
4459 ac_cv_sys_large_files
=no
; break
4461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #define _LARGE_FILES 1
4465 #include <sys/types.h>
4466 /* Check that off_t can represent 2**63 - 1 correctly.
4467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4468 since some C++ compilers masquerading as C compilers
4469 incorrectly reject 9223372036854775807. */
4470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4472 && LARGE_OFF_T % 2147483647 == 1)
4482 if ac_fn_c_try_compile
"$LINENO"; then :
4483 ac_cv_sys_large_files
=1; break
4485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4486 ac_cv_sys_large_files
=unknown
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4491 $as_echo "$ac_cv_sys_large_files" >&6; }
4492 case $ac_cv_sys_large_files in #(
4495 cat >>confdefs.h
<<_ACEOF
4496 #define _LARGE_FILES $ac_cv_sys_large_files
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4507 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4508 if ${ac_cv_sys_largefile_source+:} false
; then :
4509 $as_echo_n "(cached) " >&6
4512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #include <sys/types.h> /* for off_t */
4519 int (*fp) (FILE *, off_t, int) = fseeko;
4520 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4525 if ac_fn_c_try_link
"$LINENO"; then :
4526 ac_cv_sys_largefile_source
=no
; break
4528 rm -f core conftest.err conftest.
$ac_objext \
4529 conftest
$ac_exeext conftest.
$ac_ext
4530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #define _LARGEFILE_SOURCE 1
4533 #include <sys/types.h> /* for off_t */
4538 int (*fp) (FILE *, off_t, int) = fseeko;
4539 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4544 if ac_fn_c_try_link
"$LINENO"; then :
4545 ac_cv_sys_largefile_source
=1; break
4547 rm -f core conftest.err conftest.
$ac_objext \
4548 conftest
$ac_exeext conftest.
$ac_ext
4549 ac_cv_sys_largefile_source
=unknown
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4554 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4555 case $ac_cv_sys_largefile_source in #(
4558 cat >>confdefs.h
<<_ACEOF
4559 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4565 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4566 # in glibc 2.1.3, but that breaks too many other things.
4567 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4568 if test $ac_cv_sys_largefile_source != unknown
; then
4570 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4575 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
4577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4579 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4580 cat >>confdefs.h
<<_ACEOF
4581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 for ac_header
in linux
/types.h
4590 ac_fn_c_check_header_mongrel
"$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4591 if test "x$ac_cv_header_linux_types_h" = xyes
; then :
4592 cat >>confdefs.h
<<_ACEOF
4593 #define HAVE_LINUX_TYPES_H 1
4600 for ac_header
in linux
/if_packet.h netpacket
/packet.h netpacket
/if_packet.h
4602 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4603 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4604 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4605 cat >>confdefs.h
<<_ACEOF
4606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 for ac_header
in net
/pfvar.h
4615 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4616 #include <sys/socket.h>
4619 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4620 cat >>confdefs.h
<<_ACEOF
4621 #define HAVE_NET_PFVAR_H 1
4628 if test "$ac_cv_header_net_pfvar_h" = yes; then
4630 # Check for various PF actions.
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4633 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <sys/types.h>
4637 #include <sys/socket.h>
4639 #include <net/pfvar.h>
4643 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4648 if ac_fn_c_try_compile
"$LINENO"; then :
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 $as_echo "yes" >&6; }
4653 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4662 for ac_header
in netinet
/if_ether.h
4664 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4665 #include <sys/socket.h>
4667 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4668 cat >>confdefs.h
<<_ACEOF
4669 #define HAVE_NETINET_IF_ETHER_H 1
4676 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4678 # The simple test didn't work.
4679 # Do we need to include <net/if.h> first?
4680 # Unset ac_cv_header_netinet_if_ether_h so we don't
4681 # treat the previous failure as a cached value and
4682 # suppress the next test.
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4685 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4686 unset ac_cv_header_netinet_if_ether_h
4687 for ac_header
in netinet
/if_ether.h
4689 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4690 #include <sys/socket.h>
4691 #include <netinet/in.h>
4696 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4697 cat >>confdefs.h
<<_ACEOF
4698 #define HAVE_NETINET_IF_ETHER_H 1
4707 if test "$GCC" = yes ; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4709 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4710 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4711 $as_echo_n "(cached) " >&6
4713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4716 * This generates a "duplicate case value" when fixincludes
4719 # include <sys/types.h>
4720 # include <sys/time.h>
4721 # include <sys/ioctl.h>
4722 # ifdef HAVE_SYS_IOCCOM_H
4723 # include <sys/ioccom.h>
4736 if ac_fn_c_try_compile
"$LINENO"; then :
4737 ac_cv_lbl_gcc_fixincludes
=yes
4739 ac_cv_lbl_gcc_fixincludes
=no
4741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4745 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4746 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4747 # Don't cache failure
4748 unset ac_cv_lbl_gcc_fixincludes
4749 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4753 for ac_func
in strerror strlcpy
4755 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4756 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4757 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4758 cat >>confdefs.h
<<_ACEOF
4759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4767 for ac_func
in vsnprintf snprintf
4769 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4770 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4771 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4772 cat >>confdefs.h
<<_ACEOF
4773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4781 if test $needsnprintf = yes; then
4782 case " $LIBOBJS " in
4783 *" snprintf.$ac_objext "* ) ;;
4784 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4791 # Do this before checking for ether_hostton(), as it's a
4792 # "gethostbyname() -ish function".
4795 # Most operating systems have gethostbyname() in the default searched
4796 # libraries (i.e. libc):
4797 # Some OSes (eg. Solaris) place it in libnsl
4798 # Some strange OSes (SINIX) have it in libsocket:
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4800 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4801 if ${ac_cv_search_gethostbyname+:} false
; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_func_search_save_LIBS
=$LIBS
4805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4808 /* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
4814 char gethostbyname ();
4818 return gethostbyname ();
4823 for ac_lib
in '' nsl socket resolv
; do
4824 if test -z "$ac_lib"; then
4825 ac_res
="none required"
4828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4830 if ac_fn_c_try_link
"$LINENO"; then :
4831 ac_cv_search_gethostbyname
=$ac_res
4833 rm -f core conftest.err conftest.
$ac_objext \
4835 if ${ac_cv_search_gethostbyname+:} false
; then :
4839 if ${ac_cv_search_gethostbyname+:} false
; then :
4842 ac_cv_search_gethostbyname
=no
4845 LIBS
=$ac_func_search_save_LIBS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4848 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4849 ac_res
=$ac_cv_search_gethostbyname
4850 if test "$ac_res" != no
; then :
4851 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4855 # Unfortunately libsocket sometimes depends on libnsl and
4856 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4857 if test "$ac_cv_search_gethostbyname" = "no"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4860 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4861 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
4862 $as_echo_n "(cached) " >&6
4864 ac_check_lib_save_LIBS
=$LIBS
4865 LIBS
="-lsocket -lnsl $LIBS"
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4869 /* Override any GCC internal prototype to avoid an error.
4870 Use char because int might match the return type of a GCC
4871 builtin and then its argument prototype would still apply. */
4875 char gethostbyname ();
4879 return gethostbyname ();
4884 if ac_fn_c_try_link
"$LINENO"; then :
4885 ac_cv_lib_socket_gethostbyname
=yes
4887 ac_cv_lib_socket_gethostbyname
=no
4889 rm -f core conftest.err conftest.
$ac_objext \
4890 conftest
$ac_exeext conftest.
$ac_ext
4891 LIBS
=$ac_check_lib_save_LIBS
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4894 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4895 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
4896 LIBS
="-lsocket -lnsl $LIBS"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4901 $as_echo_n "checking for library containing socket... " >&6; }
4902 if ${ac_cv_search_socket+:} false
; then :
4903 $as_echo_n "(cached) " >&6
4905 ac_func_search_save_LIBS
=$LIBS
4906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4909 /* Override any GCC internal prototype to avoid an error.
4910 Use char because int might match the return type of a GCC
4911 builtin and then its argument prototype would still apply. */
4924 for ac_lib
in '' socket
; do
4925 if test -z "$ac_lib"; then
4926 ac_res
="none required"
4929 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4931 if ac_fn_c_try_link
"$LINENO"; then :
4932 ac_cv_search_socket
=$ac_res
4934 rm -f core conftest.err conftest.
$ac_objext \
4936 if ${ac_cv_search_socket+:} false
; then :
4940 if ${ac_cv_search_socket+:} false
; then :
4943 ac_cv_search_socket
=no
4946 LIBS
=$ac_func_search_save_LIBS
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4949 $as_echo "$ac_cv_search_socket" >&6; }
4950 ac_res
=$ac_cv_search_socket
4951 if test "$ac_res" != no
; then :
4952 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4956 $as_echo_n "checking for socket in -lsocket... " >&6; }
4957 if ${ac_cv_lib_socket_socket+:} false
; then :
4958 $as_echo_n "(cached) " >&6
4960 ac_check_lib_save_LIBS
=$LIBS
4961 LIBS
="-lsocket -lnsl $LIBS"
4962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4965 /* Override any GCC internal prototype to avoid an error.
4966 Use char because int might match the return type of a GCC
4967 builtin and then its argument prototype would still apply. */
4980 if ac_fn_c_try_link
"$LINENO"; then :
4981 ac_cv_lib_socket_socket
=yes
4983 ac_cv_lib_socket_socket
=no
4985 rm -f core conftest.err conftest.
$ac_objext \
4986 conftest
$ac_exeext conftest.
$ac_ext
4987 LIBS
=$ac_check_lib_save_LIBS
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4990 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4991 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
4992 LIBS
="-lsocket -lnsl $LIBS"
4997 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
4999 $as_echo_n "checking for library containing putmsg... " >&6; }
5000 if ${ac_cv_search_putmsg+:} false
; then :
5001 $as_echo_n "(cached) " >&6
5003 ac_func_search_save_LIBS
=$LIBS
5004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5007 /* Override any GCC internal prototype to avoid an error.
5008 Use char because int might match the return type of a GCC
5009 builtin and then its argument prototype would still apply. */
5022 for ac_lib
in '' str
; do
5023 if test -z "$ac_lib"; then
5024 ac_res
="none required"
5027 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5029 if ac_fn_c_try_link
"$LINENO"; then :
5030 ac_cv_search_putmsg
=$ac_res
5032 rm -f core conftest.err conftest.
$ac_objext \
5034 if ${ac_cv_search_putmsg+:} false
; then :
5038 if ${ac_cv_search_putmsg+:} false
; then :
5041 ac_cv_search_putmsg
=no
5044 LIBS
=$ac_func_search_save_LIBS
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5047 $as_echo "$ac_cv_search_putmsg" >&6; }
5048 ac_res
=$ac_cv_search_putmsg
5049 if test "$ac_res" != no
; then :
5050 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5057 # You are in a twisty little maze of UN*Xes, all different.
5058 # Some might not have ether_hostton().
5059 # Some might have it, but not declare it in any header file.
5060 # Some might have it, but declare it in <netinet/if_ether.h>.
5061 # Some might have it, but declare it in <netinet/ether.h>
5062 # (And some might have it but document it as something declared in
5063 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5065 # Before you is a C compiler.
5067 for ac_func
in ether_hostton
5069 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5070 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5071 cat >>confdefs.h
<<_ACEOF
5072 #define HAVE_ETHER_HOSTTON 1
5078 if test "$ac_cv_func_ether_hostton" = yes; then
5080 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5082 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5084 # Yes. Does it declare ether_hostton()?
5086 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5087 #include <sys/types.h>
5088 #include <sys/socket.h>
5089 #include <netinet/in.h>
5090 #include <arpa/inet.h>
5094 #include <netinet/if_ether.h>
5097 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5100 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5109 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5111 # No, how about <netinet/ether.h>, as on Linux?
5113 for ac_header
in netinet
/ether.h
5115 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5116 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
5117 cat >>confdefs.h
<<_ACEOF
5118 #define HAVE_NETINET_ETHER_H 1
5125 if test "$ac_cv_header_netinet_ether_h" = yes; then
5127 # We have it - does it declare ether_hostton()?
5128 # Unset ac_cv_have_decl_ether_hostton so we don't
5129 # treat the previous failure as a cached value and
5130 # suppress the next test.
5132 unset ac_cv_have_decl_ether_hostton
5133 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5134 #include <netinet/ether.h>
5137 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5140 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5148 # Is ether_hostton() declared?
5150 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5152 # No, we'll have to declare it ourselves.
5153 # Do we have "struct ether_addr"?
5155 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5156 #include <sys/types.h>
5157 #include <sys/socket.h>
5158 #include <netinet/in.h>
5159 #include <arpa/inet.h>
5163 #include <netinet/if_ether.h>
5166 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5168 cat >>confdefs.h
<<_ACEOF
5169 #define HAVE_STRUCT_ETHER_ADDR 1
5176 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5180 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5186 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5187 # Check whether --enable-protochain was given.
5188 if test "${enable_protochain+set}" = set; then :
5189 enableval
=$enable_protochain;
5192 case "x$enable_protochain" in
5193 xyes
) enable_protochain
=enabled
;;
5194 xno
) enable_protochain
=disabled
;;
5195 x
) enable_protochain
=enabled
;;
5198 if test "$enable_protochain" = "disabled"; then
5200 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5204 $as_echo "${enable_protochain}" >&6; }
5207 # SITA support is mutually exclusive with native capture support;
5208 # "--with-sita" selects SITA support.
5211 # Check whether --with-sita was given.
5212 if test "${with_sita+set}" = set; then :
5214 if test ! "x$withval" = "xno" ; then
5216 $as_echo "#define SITA 1" >>confdefs.h
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5219 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5226 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5227 as_fn_error $?
"pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5230 # Check whether --with-pcap was given.
5231 if test "${with_pcap+set}" = set; then :
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5236 $as_echo_n "checking packet capture type... " >&6; }
5237 if test ! -z "$with_pcap" ; then
5239 elif test -r /dev
/bpf
-o -h /dev
/bpf
; then
5241 # Cloning BPF device.
5245 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5247 elif test -r /dev
/bpf0
; then
5249 elif test -r /usr
/include
/net
/pfilt.h
; then
5251 elif test -r /dev
/enet
; then
5253 elif test -r /dev
/nit
; then
5255 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5257 elif test -r /usr
/include
/linux
/socket.h
; then
5259 elif test -r /usr
/include
/net
/raw.h
; then
5261 elif test -r /usr
/include
/odmi.h
; then
5263 # On AIX, the BPF devices might not yet be present - they're
5264 # created the first time libpcap runs after booting.
5265 # We check for odmi.h instead.
5268 elif test -c /dev
/bpf0
; then # check again in case not readable
5270 elif test -r /usr
/include
/sys
/dlpi.h
; then
5272 elif test -c /dev
/enet
; then # check again in case not readable
5274 elif test -c /dev
/nit
; then # check again in case not readable
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5280 $as_echo "$V_PCAP" >&6; }
5283 # Do capture-mechanism-dependent tests.
5288 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5293 # Checks for some header files.
5295 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5297 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5298 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5299 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5300 cat >>confdefs.h
<<_ACEOF
5301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5310 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5311 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5312 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5313 # private version also existed, which did not have the same APIs.
5314 # Due to a gcc bug, the default search path for 32-bit libraries does
5315 # not include /lib, we add it explicitly here.
5316 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5317 # Also, due to the bug above applications that link to libpcap with
5318 # libdlpi will have to add "-L/lib" option to "configure".
5320 saved_ldflags
=$LDFLAGS
5321 LDFLAGS
="$LIBS -L/lib"
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5323 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5324 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5325 $as_echo_n "(cached) " >&6
5327 ac_check_lib_save_LIBS
=$LIBS
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 /* Override any GCC internal prototype to avoid an error.
5333 Use char because int might match the return type of a GCC
5334 builtin and then its argument prototype would still apply. */
5342 return dlpi_walk ();
5347 if ac_fn_c_try_link
"$LINENO"; then :
5348 ac_cv_lib_dlpi_dlpi_walk
=yes
5350 ac_cv_lib_dlpi_dlpi_walk
=no
5352 rm -f core conftest.err conftest.
$ac_objext \
5353 conftest
$ac_exeext conftest.
$ac_ext
5354 LIBS
=$ac_check_lib_save_LIBS
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5357 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5358 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5363 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5370 LDFLAGS
=$saved_ldflags
5373 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5377 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5378 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5379 $as_echo_n "(cached) " >&6
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5384 #include <sys/types.h>
5385 #include <sys/time.h>
5386 #include <sys/dlpi.h>
5391 int i = DL_PROMISC_PHYS;
5396 if ac_fn_c_try_compile
"$LINENO"; then :
5397 ac_cv_sys_dlpi_usable
=yes
5399 ac_cv_sys_dlpi_usable
=no
5401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5405 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5406 if test $ac_cv_sys_dlpi_usable = no
; then
5407 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5411 # Check whether we have a /dev/dlpi device or have multiple devices.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5414 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5415 if test -c /dev
/dlpi
; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5419 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5426 $as_echo_n "checking for $dir directory... " >&6; }
5427 if test -d $dir ; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; }
5431 cat >>confdefs.h
<<_ACEOF
5432 #define PCAP_DEV_PREFIX "$dir"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5442 # This check is for Solaris with DLPI support for passive modes.
5443 # See dlpi(7P) for more details.
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5446 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5447 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5448 $as_echo_n "(cached) " >&6
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 # include <sys/types.h>
5454 # include <sys/dlpi.h>
5458 u_int i = sizeof(dl_passive_req_t)
5463 if ac_fn_c_try_compile
"$LINENO"; then :
5464 ac_cv_lbl_has_dl_passive_req_t
=yes
5466 ac_cv_lbl_has_dl_passive_req_t
=no
5468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5472 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5473 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5475 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5482 # Do we have the wireless extensions?
5484 for ac_header
in linux
/wireless.h
5486 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5487 #include <sys/socket.h>
5488 #include <linux/if.h>
5489 #include <linux/types.h>
5492 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5493 cat >>confdefs.h
<<_ACEOF
5494 #define HAVE_LINUX_WIRELESS_H 1
5506 # Check whether --with-libnl was given.
5507 if test "${with_libnl+set}" = set; then :
5508 withval
=$with_libnl; with_libnl
=$withval
5512 if test x
$with_libnl != xno
; then
5516 # Try libnl 3.x first.
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5519 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5520 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5521 $as_echo_n "(cached) " >&6
5523 ac_check_lib_save_LIBS
=$LIBS
5525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 /* Override any GCC internal prototype to avoid an error.
5529 Use char because int might match the return type of a GCC
5530 builtin and then its argument prototype would still apply. */
5534 char nl_socket_alloc ();
5538 return nl_socket_alloc ();
5543 if ac_fn_c_try_link
"$LINENO"; then :
5544 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5546 ac_cv_lib_nl_3_nl_socket_alloc
=no
5548 rm -f core conftest.err conftest.
$ac_objext \
5549 conftest
$ac_exeext conftest.
$ac_ext
5550 LIBS
=$ac_check_lib_save_LIBS
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5553 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5554 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5557 # Yes, we have libnl 3.x.
5559 LIBS
="-lnl-genl-3 -lnl-3 $LIBS"
5561 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5564 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5567 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5570 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5572 V_INCLS
="$V_INCLS -I/usr/include/libnl3"
5578 if test x
$have_any_nl = xno
; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5583 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5584 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_check_lib_save_LIBS
=$LIBS
5589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5598 char nl_socket_alloc ();
5602 return nl_socket_alloc ();
5607 if ac_fn_c_try_link
"$LINENO"; then :
5608 ac_cv_lib_nl_nl_socket_alloc
=yes
5610 ac_cv_lib_nl_nl_socket_alloc
=no
5612 rm -f core conftest.err conftest.
$ac_objext \
5613 conftest
$ac_exeext conftest.
$ac_ext
5614 LIBS
=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5617 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5618 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
5621 # Yes, we have libnl 2.x.
5623 LIBS
="-lnl-genl -lnl $LIBS"
5625 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5628 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5631 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5634 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5642 if test x
$have_any_nl = xno
; then
5644 # No, we don't; do we have libnl 1.x?
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5647 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5648 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
5649 $as_echo_n "(cached) " >&6
5651 ac_check_lib_save_LIBS
=$LIBS
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5656 /* Override any GCC internal prototype to avoid an error.
5657 Use char because int might match the return type of a GCC
5658 builtin and then its argument prototype would still apply. */
5662 char nl_handle_alloc ();
5666 return nl_handle_alloc ();
5671 if ac_fn_c_try_link
"$LINENO"; then :
5672 ac_cv_lib_nl_nl_handle_alloc
=yes
5674 ac_cv_lib_nl_nl_handle_alloc
=no
5676 rm -f core conftest.err conftest.
$ac_objext \
5677 conftest
$ac_exeext conftest.
$ac_ext
5678 LIBS
=$ac_check_lib_save_LIBS
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5681 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5682 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
5689 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5697 if test x
$have_any_nl = xno
; then
5699 # No, we don't have libnl at all.
5701 if test x
$with_libnl = xyes
; then
5702 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
5707 for ac_header
in linux
/ethtool.h
5709 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5710 $ac_includes_default
5711 #include <linux/types.h>
5714 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
5715 cat >>confdefs.h
<<_ACEOF
5716 #define HAVE_LINUX_ETHTOOL_H 1
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5724 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5725 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5731 # include <linux/if_packet.h>
5735 struct tpacket_stats stats
5740 if ac_fn_c_try_compile
"$LINENO"; then :
5741 ac_cv_lbl_tpacket_stats
=yes
5743 ac_cv_lbl_tpacket_stats
=no
5745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5749 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5750 if test $ac_cv_lbl_tpacket_stats = yes; then
5752 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5756 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5757 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
5758 $as_echo_n "(cached) " >&6
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5763 # include <sys/types.h>
5764 # include <linux/if_packet.h>
5768 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
5773 if ac_fn_c_try_compile
"$LINENO"; then :
5774 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
5776 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
5778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
5782 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
5783 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
5784 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
5787 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
5794 # Check whether we have the *BSD-style ioctls.
5796 for ac_header
in net
/if_media.h
5798 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
5799 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
5800 cat >>confdefs.h
<<_ACEOF
5801 #define HAVE_NET_IF_MEDIA_H 1
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
5810 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <sys/socket.h>
5814 #include <sys/ioctl.h>
5816 #include <net/bpf.h>
5820 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
5825 if ac_fn_c_try_compile
"$LINENO"; then :
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5830 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5840 # Check whether we have struct BPF_TIMEVAL.
5842 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
5843 #include <sys/types.h>
5844 #include <sys/ioctl.h>
5845 #ifdef HAVE_SYS_IOCCOM_H
5846 #include <sys/ioccom.h>
5848 #include <net/bpf.h>
5851 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
5853 cat >>confdefs.h
<<_ACEOF
5854 #define HAVE_STRUCT_BPF_TIMEVAL 1
5863 V_DEFS
="$V_DEFS -DDAG_ONLY"
5867 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
5871 V_DEFS
="$V_DEFS -DSNF_ONLY"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5876 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5878 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5882 if test "$V_PCAP" = null
5885 # We can't capture, so we can't open any capture
5886 # devices, so we won't return any interfaces.
5890 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5891 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
5894 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5895 # as well, just in case some platform is really weird.
5897 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5898 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
5901 # We have the header, so we use "getifaddrs()" to
5902 # get the list of interfaces.
5909 # We don't have the header - give up.
5910 # XXX - we could also fall back on some other
5911 # mechanism, but, for now, this'll catch this
5912 # problem so that we can at least try to figure
5913 # out something to do on systems with "getifaddrs()"
5914 # but without "ifaddrs.h", if there is something
5915 # we can do on those systems.
5917 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
5926 # Well, we don't have "getifaddrs()", so we have to use
5927 # some other mechanism; determine what that mechanism is.
5929 # The first thing we use is the type of capture mechanism,
5930 # which is somewhat of a proxy for the OS we're using.
5936 # This might be Solaris 8 or later, with
5937 # SIOCGLIFCONF, or it might be some other OS
5938 # or some older version of Solaris, with
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
5942 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
5943 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
5944 $as_echo_n "(cached) " >&6
5946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #include <sys/param.h>
5949 #include <sys/file.h>
5950 #include <sys/ioctl.h>
5951 #include <sys/socket.h>
5952 #include <sys/sockio.h>
5956 ioctl(0, SIOCGLIFCONF, (char *)0);
5961 if ac_fn_c_try_compile
"$LINENO"; then :
5962 ac_cv_lbl_have_siocglifconf
=yes
5964 ac_cv_lbl_have_siocglifconf
=no
5966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
5970 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
5971 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5980 # Assume we just have SIOCGIFCONF.
5981 # (XXX - on at least later Linux kernels, there's
5982 # another mechanism, and we should be using that
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5996 $as_echo_n "checking for socklen_t... " >&6; }
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6000 #include <sys/types.h>
6001 #include <sys/socket.h>
6011 if ac_fn_c_try_compile
"$LINENO"; then :
6016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 if test "x$have_socklen_t" = "xyes"; then
6019 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6023 $as_echo "$have_socklen_t" >&6; }
6025 # Check whether --enable-ipv6 was given.
6026 if test "${enable_ipv6+set}" = set; then :
6027 enableval
=$enable_ipv6;
6029 enable_ipv6
=ifavailable
6032 if test "$enable_ipv6" != "no"; then
6033 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6034 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6037 $as_echo "#define INET6 1" >>confdefs.h
6042 if test "$enable_ipv6" != "ifavailable"; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6046 See \`config.log' for more details" "$LINENO" 5; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6054 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6055 # Check whether --enable-optimizer-dbg was given.
6056 if test "${enable_optimizer_dbg+set}" = set; then :
6057 enableval
=$enable_optimizer_dbg;
6060 if test "$enable_optimizer_dbg" = "yes"; then
6062 $as_echo "#define BDEBUG 1" >>confdefs.h
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6066 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6069 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6070 # Check whether --enable-yydebug was given.
6071 if test "${enable_yydebug+set}" = set; then :
6072 enableval
=$enable_yydebug;
6075 if test "$enable_yydebug" = "yes"; then
6077 $as_echo "#define YYDEBUG 1" >>confdefs.h
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6081 $as_echo "${enable_yydebug-no}" >&6; }
6083 # Check for Endace DAG card support.
6085 # Check whether --with-dag was given.
6086 if test "${with_dag+set}" = set; then :
6088 if test "$withval" = no
6090 # User doesn't want DAG support.
6092 elif test "$withval" = yes
6094 # User wants DAG support but hasn't specified a directory.
6097 # User wants DAG support and has specified a directory, so use the provided value.
6105 # Use DAG API if present, otherwise don't
6113 # Check whether --with-dag-includes was given.
6114 if test "${with_dag_includes+set}" = set; then :
6115 withval
=$with_dag_includes;
6116 # User wants DAG support and has specified a header directory, so use the provided value.
6118 dag_include_dir
=$withval
6124 # Check whether --with-dag-libraries was given.
6125 if test "${with_dag_libraries+set}" = set; then :
6126 withval
=$with_dag_libraries;
6127 # User wants DAG support and has specified a library directory, so use the provided value.
6129 dag_lib_dir
=$withval
6137 # We support the DAG API if we're on Linux or BSD, or if we're
6138 # building a DAG-only libpcap.
6143 # If the user explicitly requested DAG, tell them it's not
6146 # If they expressed no preference, don't include it.
6148 if test $want_dag = yes; then
6149 as_fn_error $?
"DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5
6150 elif test $want_dag = yes; then
6156 ac_cv_lbl_dag_api
=no
6157 if test "$want_dag" != no
; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6160 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6162 # If necessary, set default paths for DAG API headers and libraries.
6163 if test -z "$dag_root"; then
6167 if test -z "$dag_include_dir"; then
6168 dag_include_dir
="$dag_root/include"
6171 if test -z "$dag_lib_dir"; then
6172 dag_lib_dir
="$dag_root/lib"
6175 if test -z "$dag_tools_dir"; then
6176 dag_tools_dir
="$dag_root/tools"
6179 if test -r $dag_include_dir/dagapi.h
; then
6180 ac_cv_lbl_dag_api
=yes
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6183 $as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6186 if test $ac_cv_lbl_dag_api = yes; then
6187 V_INCLS
="$V_INCLS -I$dag_include_dir"
6189 if test $V_PCAP != dag
; then
6193 # See if we can find a general version string.
6194 # Don't need to save and restore LIBS to prevent -ldag being
6195 # included if there's a found-action (arg 3).
6196 saved_ldflags
=$LDFLAGS
6197 LDFLAGS
="-L$dag_lib_dir"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6199 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6200 if ${ac_cv_lib_dag_dag_attach_stream+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 ac_check_lib_save_LIBS
=$LIBS
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply. */
6214 char dag_attach_stream ();
6218 return dag_attach_stream ();
6223 if ac_fn_c_try_link
"$LINENO"; then :
6224 ac_cv_lib_dag_dag_attach_stream
=yes
6226 ac_cv_lib_dag_dag_attach_stream
=no
6228 rm -f core conftest.err conftest.
$ac_objext \
6229 conftest
$ac_exeext conftest.
$ac_ext
6230 LIBS
=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6233 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6234 if test "x$ac_cv_lib_dag_dag_attach_stream" = xyes
; then :
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6241 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6242 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6243 $as_echo_n "(cached) " >&6
6245 ac_check_lib_save_LIBS
=$LIBS
6247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6250 /* Override any GCC internal prototype to avoid an error.
6251 Use char because int might match the return type of a GCC
6252 builtin and then its argument prototype would still apply. */
6256 char dag_get_erf_types ();
6260 return dag_get_erf_types ();
6265 if ac_fn_c_try_link
"$LINENO"; then :
6266 ac_cv_lib_dag_dag_get_erf_types
=yes
6268 ac_cv_lib_dag_dag_get_erf_types
=no
6270 rm -f core conftest.err conftest.
$ac_objext \
6271 conftest
$ac_exeext conftest.
$ac_ext
6272 LIBS
=$ac_check_lib_save_LIBS
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6275 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6276 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6279 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6284 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6285 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} false
; then :
6286 $as_echo_n "(cached) " >&6
6288 ac_check_lib_save_LIBS
=$LIBS
6290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6293 /* Override any GCC internal prototype to avoid an error.
6294 Use char because int might match the return type of a GCC
6295 builtin and then its argument prototype would still apply. */
6299 char dag_get_stream_erf_types ();
6303 return dag_get_stream_erf_types ();
6308 if ac_fn_c_try_link
"$LINENO"; then :
6309 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6311 ac_cv_lib_dag_dag_get_stream_erf_types
=no
6313 rm -f core conftest.err conftest.
$ac_objext \
6314 conftest
$ac_exeext conftest.
$ac_ext
6315 LIBS
=$ac_check_lib_save_LIBS
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6318 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6319 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6322 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6327 LDFLAGS
=$saved_ldflags
6329 if test "$dag_streams" = 1; then
6331 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6334 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6337 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6338 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6339 $as_echo_n "(cached) " >&6
6341 ac_check_lib_save_LIBS
=$LIBS
6343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6346 /* Override any GCC internal prototype to avoid an error.
6347 Use char because int might match the return type of a GCC
6348 builtin and then its argument prototype would still apply. */
6352 char vdag_set_device_info ();
6356 return vdag_set_device_info ();
6361 if ac_fn_c_try_link
"$LINENO"; then :
6362 ac_cv_lib_vdag_vdag_set_device_info
=yes
6364 ac_cv_lib_vdag_vdag_set_device_info
=no
6366 rm -f core conftest.err conftest.
$ac_objext \
6367 conftest
$ac_exeext conftest.
$ac_ext
6368 LIBS
=$ac_check_lib_save_LIBS
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6371 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6372 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6373 ac_dag_have_vdag
="1"
6375 ac_dag_have_vdag
="0"
6378 if test "$ac_dag_have_vdag" = 1; then
6380 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6382 LIBS
="$LIBS -lpthread"
6387 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5
6392 $as_echo_n "checking whether we have the DAG API... " >&6; }
6394 if test $ac_cv_lbl_dag_api = no
; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 if test "$want_dag" = yes; then
6398 # User wanted DAG support but we couldn't find it.
6399 as_fn_error $?
"DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5
6402 if test "$V_PCAP" = dag
; then
6403 # User requested "dag" capture type but the DAG API wasn't
6405 as_fn_error $?
"Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" "$LINENO" 5
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6409 $as_echo "yes" >&6; }
6413 # Check whether --with-septel was given.
6414 if test "${with_septel+set}" = set; then :
6415 withval
=$with_septel;
6416 if test "$withval" = no
6419 elif test "$withval" = yes
6425 septel_root
=$withval
6431 # Use Septel API if present, otherwise don't
6433 want_septel
=ifpresent
6434 septel_root
=.
/..
/septel
6438 ac_cv_lbl_septel_api
=no
6442 # We support the Septel API if we're on Linux, or if we're building
6443 # a Septel-only libpcap.
6448 # If the user explicitly requested Septel, tell them it's not
6451 # If they expressed no preference, don't include it.
6453 if test $want_septel = yes; then
6454 as_fn_error $?
"Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5
6455 elif test $want_septel = yes; then
6461 if test "$with_septel" != no
; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5
6463 $as_echo_n "checking whether we have Septel API... " >&6; }
6465 if test -z "$septel_root"; then
6466 septel_root
=$srcdir/..
/septel
6469 septel_tools_dir
="$septel_root"
6470 septel_include_dir
="$septel_root/INC"
6472 ac_cv_lbl_septel_api
=no
6473 if test -r "$septel_include_dir/msg.h"; then
6474 V_INCLS
="$V_INCLS -I$septel_include_dir"
6475 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"
6476 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"
6478 if test "$V_PCAP" != septel
; then
6479 SSRC
="pcap-septel.c"
6481 ac_cv_lbl_septel_api
=yes
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5
6485 $as_echo "$ac_cv_lbl_septel_api" >&6; }
6486 if test $ac_cv_lbl_septel_api = no
; then
6487 if test "$want_septel" = yes; then
6488 as_fn_error $?
"Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5
6492 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6497 if test "$V_PCAP" = septel
-a "$ac_cv_lbl_septel_api" = no
; then
6498 as_fn_error $?
"Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5
6501 # Check for Myricom SNF support.
6503 # Check whether --with-snf was given.
6504 if test "${with_snf+set}" = set; then :
6506 if test "$withval" = no
6508 # User explicitly doesn't want SNF
6510 elif test "$withval" = yes
6512 # User wants SNF support but hasn't specific a directory.
6515 # User wants SNF support with a specified directory.
6523 # Use Sniffer API if present, otherwise don't
6531 # Check whether --with-snf-includes was given.
6532 if test "${with_snf_includes+set}" = set; then :
6533 withval
=$with_snf_includes;
6534 # User wants SNF with specific header directory
6536 snf_include_dir
=$withval
6542 # Check whether --with-snf-libraries was given.
6543 if test "${with_snf_libraries+set}" = set; then :
6544 withval
=$with_snf_libraries;
6545 # User wants SNF with specific lib directory
6547 snf_lib_dir
=$withval
6555 # We support the Sniffer API if we're on BSD, Linux, or if we're
6556 # building a Sniffer-only libpcap.
6561 # If the user explicitly requested Sniffer, tell them it's not
6564 # If they expressed no preference, don't include it.
6566 if test $want_snf = yes; then
6567 as_fn_error $?
"Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5
6568 elif test $want_snf = yes; then
6574 ac_cv_lbl_snf_api
=no
6575 if test "$with_snf" != no
; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6578 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6580 if test -z "$snf_root"; then
6584 if test -z "$snf_include_dir"; then
6585 snf_include_dir
="$snf_root/include"
6588 if test -z "$snf_lib_dir"; then
6589 snf_lib_dir
="$snf_root/lib"
6592 if test -f "$snf_include_dir/snf.h"; then
6593 ac_cv_lbl_snf_api
=yes
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
6596 $as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; }
6598 if test $ac_cv_lbl_snf_api = no
; then
6599 if test "$want_snf" = yes; then
6600 as_fn_error $?
"SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5
6603 saved_ldflags
=$LDFLAGS
6604 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6606 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6607 if ${ac_cv_lib_snf_snf_init+:} false
; then :
6608 $as_echo_n "(cached) " >&6
6610 ac_check_lib_save_LIBS
=$LIBS
6612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 /* Override any GCC internal prototype to avoid an error.
6616 Use char because int might match the return type of a GCC
6617 builtin and then its argument prototype would still apply. */
6630 if ac_fn_c_try_link
"$LINENO"; then :
6631 ac_cv_lib_snf_snf_init
=yes
6633 ac_cv_lib_snf_snf_init
=no
6635 rm -f core conftest.err conftest.
$ac_objext \
6636 conftest
$ac_exeext conftest.
$ac_ext
6637 LIBS
=$ac_check_lib_save_LIBS
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6640 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6641 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
6642 ac_cv_lbl_snf_api
="yes"
6644 ac_cv_lbl_snf_api
="no"
6647 LDFLAGS
="$saved_ldflags"
6649 if test $ac_cv_lbl_snf_api = no
; then
6650 if test "$want_snf" = yes; then
6651 as_fn_error $?
"SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5
6654 V_INCLS
="$V_INCLS -I$snf_include_dir"
6656 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6657 if test "$V_PCAP" != snf
; then
6661 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6667 if test "$V_PCAP" = snf
-a "$ac_cv_lbl_snf_api" = no
; then
6668 as_fn_error $?
"Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5
6672 # Check whether --with-flex was given.
6673 if test "${with_flex+set}" = set; then :
6678 # Check whether --with-bison was given.
6679 if test "${with_bison+set}" = set; then :
6680 withval
=$with_bison;
6683 if test "$with_flex" = no
; then
6688 # Extract the first word of "$ac_prog", so it can be a program name with args.
6689 set dummy
$ac_prog; ac_word
=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_V_LEX+:} false
; then :
6693 $as_echo_n "(cached) " >&6
6695 if test -n "$V_LEX"; then
6696 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
6698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir
=.
6703 for ac_exec_ext
in '' $ac_executable_extensions; do
6704 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_V_LEX
="$ac_prog"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 V_LEX
=$ac_cv_prog_V_LEX
6716 if test -n "$V_LEX"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
6718 $as_echo "$V_LEX" >&6; }
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6725 test -n "$V_LEX" && break
6727 test -n "$V_LEX" || V_LEX
="lex"
6730 if test "$V_LEX" = flex
; then
6731 # The -V flag was added in 2.4
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
6733 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
6734 if ${ac_cv_lbl_flex_v24+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 if flex
-V >/dev
/null
2>&1; then
6738 ac_cv_lbl_flex_v24
=yes
6740 ac_cv_lbl_flex_v24
=no
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
6745 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
6746 if test $ac_cv_lbl_flex_v24 = no
; then
6747 s
="2.4 or higher required"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
6749 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6753 if test "$with_bison" = no
; then
6756 for ac_prog
in bison
6758 # Extract the first word of "$ac_prog", so it can be a program name with args.
6759 set dummy
$ac_prog; ac_word
=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_V_YACC+:} false
; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$V_YACC"; then
6766 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
6768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir
=.
6773 for ac_exec_ext
in '' $ac_executable_extensions; do
6774 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_V_YACC
="$ac_prog"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 V_YACC
=$ac_cv_prog_V_YACC
6786 if test -n "$V_YACC"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
6788 $as_echo "$V_YACC" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6795 test -n "$V_YACC" && break
6797 test -n "$V_YACC" || V_YACC
="yacc"
6800 if test "$V_YACC" = bison
; then
6803 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6805 $as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6809 if test "$V_LEX" = flex
-a -n "pcap_" ; then
6810 V_LEX
="$V_LEX -Ppcap_"
6811 V_YACC
="$V_YACC -p pcap_"
6814 $as_echo "#define NEED_YYPARSE_WRAPPER 1" >>confdefs.h
6817 if test "$V_LEX" = lex ; then
6818 # Some versions of lex can't handle the definitions section of scanner.l .
6819 # Try lexing it and complain if it can't deal.
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
6821 $as_echo_n "checking for capable lex... " >&6; }
6822 if ${tcpdump_cv_capable_lex+:} false
; then :
6823 $as_echo_n "(cached) " >&6
6825 if lex -t scanner.l
> /dev
/null
2>&1; then
6826 tcpdump_cv_capable_lex
=yes
6828 tcpdump_cv_capable_lex
=insufficient
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
6832 $as_echo "$tcpdump_cv_capable_lex" >&6; }
6833 if test $tcpdump_cv_capable_lex = insufficient
; then
6834 as_fn_error $?
"Your operating system's lex is insufficient to compile
6835 libpcap. flex is a lex replacement that has many advantages, including
6836 being able to compile libpcap. For more information, see
6837 http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5
6842 # Assume, by default, no support for shared libraries and V7/BSD convention
6843 # for man pages (file formats in section 5, miscellaneous info in section 7).
6844 # Individual cases can override this.
6853 $as_echo "#define _SUN 1" >>confdefs.h
6857 # AIX makes it fun to build shared and static libraries,
6858 # because they're *both* ".a" archive libraries. We
6859 # build the static library for the benefit of the traditional
6860 # scheme of building libpcap and tcpdump in subdirectories of
6861 # the same directory, with tcpdump statically linked with the
6862 # libpcap in question, but we also build a shared library as
6863 # "libpcap.shareda" and install *it*, rather than the static
6864 # library, as "libpcap.a".
6872 # If we're using DLPI, applications will need to
6873 # use /lib/pse.exp if present, as we use the
6876 pseexe
="/lib/pse.exp"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6878 $as_echo_n "checking for $pseexe... " >&6; }
6879 if test -f $pseexe ; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6881 $as_echo "yes" >&6; }
6888 # If we're using BPF, we need "-lodm" and "-lcfg", as
6889 # we use them to load the BPF module.
6898 V_CCOPT
="$V_CCOPT -fno-common"
6899 # Check whether --enable-universal was given.
6900 if test "${enable_universal+set}" = set; then :
6901 enableval
=$enable_universal;
6904 if test "$enable_universal" != "no"; then
6909 # Pre-Tiger. Build only for 32-bit PowerPC; no
6910 # need for any special compiler or linker flags.
6916 # Tiger, prior to Intel support. Build for 32-bit
6917 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
6918 # first. (I'm guessing that's what Apple does.)
6920 V_CCOPT
="$V_CCOPT -arch ppc -arch ppc64"
6921 LDFLAGS
="$LDFLAGS -arch ppc -arch ppc64"
6926 # Tiger, subsequent to Intel support but prior to
6927 # x86-64 support. Build for 32-bit PowerPC, 64-bit
6928 # PowerPC, and x86, with 32-bit PowerPC first.
6929 # (I'm guessing that's what Apple does.)
6931 V_CCOPT
="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
6932 LDFLAGS
="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
6937 # All other Tiger, so subsequent to x86-64
6938 # support. Build for 32-bit PowerPC, 64-bit
6939 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
6940 # first. (I'm guessing that's what Apple does.)
6942 V_CCOPT
="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6943 LDFLAGS
="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6948 # Leopard. Build for 32-bit PowerPC, 64-bit
6949 # PowerPC, x86, and x86-64, with 32-bit PowerPC
6950 # first. (That's what Apple does.)
6952 V_CCOPT
="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6953 LDFLAGS
="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6958 # Snow Leopard. Build for x86-64, x86, and
6959 # 32-bit PowerPC, with x86-64 first. (That's
6960 # what Apple does, even though Snow Leopard
6961 # doesn't run on PPC, so PPC libpcap runs under
6962 # Rosetta, and Rosetta doesn't support BPF
6963 # ioctls, so PPC programs can't do live
6966 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
6967 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
6972 # Post-Snow Leopard. Build for x86-64 and
6973 # x86, with x86-64 first. (That's probably what
6974 # Apple does, given that Rosetta is gone.)
6975 # XXX - update if and when Apple drops support
6976 # for 32-bit x86 code.
6978 V_CCOPT
="$V_CCOPT -arch x86_64 -arch i386"
6979 LDFLAGS
="$LDFLAGS -arch x86_64 -arch i386"
6987 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
6991 # Use System V conventions for man pages.
7000 # Use System V conventions for man pages.
7009 # Use System V conventions for man pages.
7017 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7019 if test "`uname -m`" = "ia64"; then
7026 # "-b" builds a shared library; "+h" sets the soname.
7032 # Use System V conventions for man pages.
7040 # Use System V conventions for man pages.
7046 linux
*|freebsd
*|netbsd
*|openbsd
*|dragonfly
*|kfreebsd
*|gnu
*)
7050 # Compiler assumed to be GCC; run-time linker may require a -R
7053 if test "$libdir" != "/usr/lib"; then
7054 V_RFLAGS
=-Wl,-R$libdir
7062 # Use System V conventions for man pages.
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7070 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7071 if ${ac_cv_cc_sinix_defined+:} false
; then :
7072 $as_echo_n "(cached) " >&6
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7085 if ac_fn_c_try_compile
"$LINENO"; then :
7086 ac_cv_cc_sinix_defined
=yes
7088 ac_cv_cc_sinix_defined
=no
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7094 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7095 if test $ac_cv_cc_sinix_defined = no
; then
7097 $as_echo "#define sinix 1" >>confdefs.h
7104 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7109 # Use System V conventions for man pages.
7116 # Check whether --enable-shared was given.
7117 if test "${enable_shared+set}" = set; then :
7118 enableval
=$enable_shared;
7121 test "x$enable_shared" = "xno" && DYEXT
="none"
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7125 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_prog_RANLIB+:} false
; then :
7129 $as_echo_n "(cached) " >&6
7131 if test -n "$RANLIB"; then
7132 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir
=.
7139 for ac_exec_ext
in '' $ac_executable_extensions; do
7140 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7141 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 RANLIB
=$ac_cv_prog_RANLIB
7152 if test -n "$RANLIB"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7154 $as_echo "$RANLIB" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7162 if test -z "$ac_cv_prog_RANLIB"; then
7163 ac_ct_RANLIB
=$RANLIB
7164 # Extract the first word of "ranlib", so it can be a program name with args.
7165 set dummy ranlib
; ac_word
=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7169 $as_echo_n "(cached) " >&6
7171 if test -n "$ac_ct_RANLIB"; then
7172 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir
=.
7179 for ac_exec_ext
in '' $ac_executable_extensions; do
7180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7192 if test -n "$ac_ct_RANLIB"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7194 $as_echo "$ac_ct_RANLIB" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7200 if test "x$ac_ct_RANLIB" = x
; then
7203 case $cross_compiling:$ac_tool_warned in
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207 ac_tool_warned
=yes ;;
7209 RANLIB
=$ac_ct_RANLIB
7212 RANLIB
="$ac_cv_prog_RANLIB"
7215 if test -n "$ac_tool_prefix"; then
7216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7217 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_prog_AR+:} false
; then :
7221 $as_echo_n "(cached) " >&6
7223 if test -n "$AR"; then
7224 ac_cv_prog_AR
="$AR" # Let the user override the test.
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir
=.
7231 for ac_exec_ext
in '' $ac_executable_extensions; do
7232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7233 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 if test -n "$AR"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7246 $as_echo "$AR" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7254 if test -z "$ac_cv_prog_AR"; then
7256 # Extract the first word of "ar", so it can be a program name with args.
7257 set dummy
ar; ac_word
=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7261 $as_echo_n "(cached) " >&6
7263 if test -n "$ac_ct_AR"; then
7264 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir
=.
7271 for ac_exec_ext
in '' $ac_executable_extensions; do
7272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_ac_ct_AR
="ar"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7284 if test -n "$ac_ct_AR"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7286 $as_echo "$ac_ct_AR" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7292 if test "x$ac_ct_AR" = x
; then
7295 case $cross_compiling:$ac_tool_warned in
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299 ac_tool_warned
=yes ;;
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7309 $as_echo_n "checking whether ln -s works... " >&6; }
7311 if test "$LN_S" = "ln -s"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7313 $as_echo "yes" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7316 $as_echo "no, using $LN_S" >&6; }
7322 if test "${LBL_CFLAGS+set}" = set; then
7323 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
7325 if test -f .devel
; then
7327 # Skip all the warning option stuff on some compilers.
7329 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7332 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7333 save_CFLAGS
="$CFLAGS"
7334 CFLAGS
="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7346 if ac_fn_c_try_compile
"$LINENO"; then :
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7351 # We're assuming this is clang, where
7352 # -Werror=unknown-warning-option is the appropriate
7353 # option to force the compiler to fail.
7355 ac_lbl_unknown_warning_option_error
="-Werror=unknown-warning-option"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7360 $as_echo "yes" >&6; }
7363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7364 CFLAGS
="$save_CFLAGS"
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7368 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7369 save_CFLAGS
="$CFLAGS"
7370 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7382 if ac_fn_c_try_compile
"$LINENO"; then :
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7385 $as_echo "yes" >&6; }
7386 CFLAGS
="$save_CFLAGS"
7387 V_CCOPT
="$V_CCOPT -Wall"
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 CFLAGS
="$save_CFLAGS"
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7400 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7401 save_CFLAGS
="$CFLAGS"
7402 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7414 if ac_fn_c_try_compile
"$LINENO"; then :
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7417 $as_echo "yes" >&6; }
7418 CFLAGS
="$save_CFLAGS"
7419 V_CCOPT
="$V_CCOPT -Wmissing-prototypes"
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 CFLAGS
="$save_CFLAGS"
7428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7432 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7433 save_CFLAGS
="$CFLAGS"
7434 CFLAGS
="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7446 if ac_fn_c_try_compile
"$LINENO"; then :
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450 CFLAGS
="$save_CFLAGS"
7451 V_CCOPT
="$V_CCOPT -Wstrict-prototypes"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 CFLAGS
="$save_CFLAGS"
7460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
7465 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
7466 if test "$GCC" = yes ; then
7468 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
7469 # though it's not); we assume that, in this case, the flag
7472 ac_lbl_dependency_flag
="-M"
7475 # Not GCC or a compiler deemed to be GCC; what platform is
7476 # this? (We're assuming that if the compiler isn't GCC
7477 # it's the compiler from the vendor of the OS; that won't
7478 # necessarily be true for x86 platforms, where it might be
7479 # the Intel C compiler.)
7485 # MIPS C for IRIX, DEC C, and clang all use -M.
7487 ac_lbl_dependency_flag
="-M"
7494 ac_lbl_dependency_flag
="-xM"
7499 # HP's older C compilers don't support this.
7500 # HP's newer C compilers support this with
7501 # either +M or +Make; the older compilers
7502 # interpret +M as something completely
7503 # different, so we use +Make so we don't
7504 # think it works with the older compilers.
7506 ac_lbl_dependency_flag
="+Make"
7511 # Not one of the above; assume no support for
7512 # generating dependencies.
7514 ac_lbl_dependency_flag
=""
7520 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
7521 # complain about it?
7523 # Note: clang doesn't seem to exit with an error status when handed
7524 # an unknown non-warning error, even if you pass it
7525 # -Werror=unknown-warning-option. However, it always supports
7526 # -M, so the fact that this test always succeeds with clang
7529 if test ! -z "$ac_lbl_dependency_flag"; then
7530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 int main(void) { return 0; }
7534 echo "$CC" $ac_lbl_dependency_flag conftest.c
>&5
7535 if "$CC" $ac_lbl_dependency_flag conftest.c
>/dev
/null
2>&1; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
7537 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
7538 DEPENDENCY_CFLAG
="$ac_lbl_dependency_flag"
7539 MKDEP
='${srcdir}/mkdep'
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7544 # We can't run mkdep, so have "make depend" do
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7554 # We can't run mkdep, so have "make depend" do
7563 # We used to set -n32 for IRIX 6 when not using GCC (presumed
7564 # to mean that we're using MIPS C or MIPSpro C); it specified
7565 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
7566 # not sure why that would be something to do *only* with a
7567 # .devel file; why should the ABI for which we produce code
7570 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7572 if test -f $name ; then
7573 ln -s $name os-proto.h
7575 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7579 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7584 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7585 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false
; then :
7586 $as_echo_n "(cached) " >&6
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 # include <sys/types.h>
7592 # include <sys/socket.h>
7596 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7601 if ac_fn_c_try_compile
"$LINENO"; then :
7602 ac_cv_lbl_sockaddr_has_sa_len
=yes
7604 ac_cv_lbl_sockaddr_has_sa_len
=no
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7610 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7611 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7613 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
7618 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
7619 if ${ac_cv_lbl_has_sockaddr_storage+:} false
; then :
7620 $as_echo_n "(cached) " >&6
7622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7625 # include <sys/types.h>
7626 # include <sys/socket.h>
7630 u_int i = sizeof (struct sockaddr_storage)
7635 if ac_fn_c_try_compile
"$LINENO"; then :
7636 ac_cv_lbl_has_sockaddr_storage
=yes
7638 ac_cv_lbl_has_sockaddr_storage
=no
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7644 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
7645 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7647 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7652 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
7653 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false
; then :
7654 $as_echo_n "(cached) " >&6
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7659 # include <sys/types.h>
7660 # include <sys/dlpi.h>
7661 # include <sys/dlpi_ext.h>
7665 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7670 if ac_fn_c_try_compile
"$LINENO"; then :
7671 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
7673 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
7675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7679 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7680 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7682 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7687 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7688 if ${ac_cv_lbl_unaligned_fail+:} false
; then :
7689 $as_echo_n "(cached) " >&6
7694 # These are CPU types where:
7696 # the CPU faults on an unaligned access, but at least some
7697 # OSes that support that CPU catch the fault and simulate
7698 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7699 # the simulation is slow, so we don't want to use it;
7701 # the CPU, I infer (from the old
7703 # XXX: should also check that they don't do weird things (like on arm)
7705 # comment) doesn't fault on unaligned accesses, but doesn't
7706 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7708 # for whatever reason, the test program doesn't work
7709 # (this has been claimed to be the case for several of those
7710 # CPUs - I don't know what the problem is; the problem
7711 # was reported as "the test program dumps core" for SuperH,
7712 # but that's what the test program is *supposed* to do -
7713 # it dumps core before it writes anything, so the test
7714 # for an empty output file should find an empty output
7715 # file and conclude that unaligned accesses don't work).
7717 # This run-time test won't work if you're cross-compiling, so
7718 # in order to support cross-compiling for a particular CPU,
7719 # we have to wire in the list of CPU types anyway, as far as
7720 # I know, so perhaps we should just have a set of CPUs on
7721 # which we know it doesn't work, a set of CPUs on which we
7722 # know it does work, and have the script just fail on other
7723 # cpu types and update it when such a failure occurs.
7725 alpha
*|arm
*|bfin
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
7726 ac_cv_lbl_unaligned_fail
=yes
7730 cat >conftest.c
<<EOF
7731 # include <sys/types.h>
7732 # include <sys/wait.h>
7734 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7739 /* avoid "core dumped" message */
7745 pid = waitpid(pid, &status, 0);
7748 exit(!WIFEXITED(status));
7751 i = *(unsigned int *)&a[1];
7756 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
7757 conftest.c
$LIBS >/dev
/null
2>&1
7758 if test ! -x conftest
; then
7759 ac_cv_lbl_unaligned_fail
=yes
7761 .
/conftest
>conftest.out
7762 if test ! -s conftest.out
; then
7763 ac_cv_lbl_unaligned_fail
=yes
7765 ac_cv_lbl_unaligned_fail
=no
7768 rm -f -r conftest
* core core.conftest
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7774 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7775 if test $ac_cv_lbl_unaligned_fail = yes ; then
7777 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7782 # Makefile.in includes rules to generate version.h, so we assume
7783 # that it will be generated if autoconf is used.
7786 $as_echo "#define HAVE_VERSION_H 1" >>confdefs.h
7790 ln -s ${srcdir}/bpf
/net net
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
7811 $as_echo_n "checking for USB sniffing support... " >&6; }
7815 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
7817 USB_SRC
=pcap-usb-linux.c
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7819 $as_echo "yes" >&6; }
7820 ac_usb_dev_name
=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7821 if test $?
-ne 0 ; then
7822 ac_usb_dev_name
="usbmon"
7825 cat >>confdefs.h
<<_ACEOF
7826 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7830 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7832 # Do we have a version of <linux/compiler.h> available?
7833 # If so, we might need it for <linux/usbdevice_fs.h>.
7835 for ac_header
in linux
/compiler.h
7837 ac_fn_c_check_header_mongrel
"$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
7838 if test "x$ac_cv_header_linux_compiler_h" = xyes
; then :
7839 cat >>confdefs.h
<<_ACEOF
7840 #define HAVE_LINUX_COMPILER_H 1
7847 if test "$ac_cv_header_linux_compiler_h" = yes; then
7849 # Yes - include it when testing for <linux/usbdevice_fs.h>.
7851 for ac_header
in linux
/usbdevice_fs.h
7853 ac_fn_c_check_header_compile
"$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
7855 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes
; then :
7856 cat >>confdefs.h
<<_ACEOF
7857 #define HAVE_LINUX_USBDEVICE_FS_H 1
7865 for ac_header
in linux
/usbdevice_fs.h
7867 ac_fn_c_check_header_mongrel
"$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
7868 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes
; then :
7869 cat >>confdefs.h
<<_ACEOF
7870 #define HAVE_LINUX_USBDEVICE_FS_H 1
7878 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
7880 # OK, does it define bRequestType? Older versions of the kernel
7881 # define fields with names like "requesttype, "request", and
7882 # "value", rather than "bRequestType", "bRequest", and
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
7886 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
7887 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false
; then :
7888 $as_echo_n "(cached) " >&6
7890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7893 $ac_includes_default
7894 #ifdef HAVE_SYS_BITYPES_H
7895 #include <sys/bitypes.h>
7897 #ifdef HAVE_LINUX_COMPILER_H
7898 #include <linux/compiler.h>
7900 #include <linux/usbdevice_fs.h>
7904 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
7909 if ac_fn_c_try_compile
"$LINENO"; then :
7910 ac_cv_usbdevfs_ctrltransfer_has_bRequestType
=yes
7912 ac_cv_usbdevfs_ctrltransfer_has_bRequestType
=no
7914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
7918 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
7919 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
7921 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
7935 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7939 $as_echo "yes" >&6; }
7941 # Life's too short to deal with trying to get this to compile
7942 # if you don't get the right types defined with
7943 # __KERNEL_STRICT_NAMES getting defined by some other include.
7945 # Check whether the includes Just Work. If not, don't turn on
7946 # netfilter support.
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
7949 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
7950 if ${ac_cv_netfilter_can_compile+:} false
; then :
7951 $as_echo_n "(cached) " >&6
7953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7956 $ac_includes_default
7957 #include <sys/socket.h>
7958 #include <netinet/in.h>
7959 #include <linux/types.h>
7961 #include <linux/netlink.h>
7962 #include <linux/netfilter.h>
7963 #include <linux/netfilter/nfnetlink.h>
7964 #include <linux/netfilter/nfnetlink_log.h>
7965 #include <linux/netfilter/nfnetlink_queue.h>
7974 if ac_fn_c_try_compile
"$LINENO"; then :
7975 ac_cv_netfilter_can_compile
=yes
7977 ac_cv_netfilter_can_compile
=no
7979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
7983 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
7984 if test $ac_cv_netfilter_can_compile = yes ; then
7986 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
7988 NETFILTER_SRC
=pcap-netfilter-linux.c
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7999 # Check whether --enable-bluetooth was given.
8000 if test "${enable_bluetooth+set}" = set; then :
8001 enableval
=$enable_bluetooth;
8003 enable_bluetooth
=ifsupportavailable
8007 if test "x$enable_bluetooth" != "xno" ; then
8010 ac_fn_c_check_header_mongrel
"$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8011 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
; then :
8014 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8016 BT_SRC
=pcap-bt-linux.c
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8018 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8021 # OK, does struct sockaddr_hci have an hci_channel
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8025 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8026 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false
; then :
8027 $as_echo_n "(cached) " >&6
8029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8032 #include <bluetooth/bluetooth.h>
8033 #include <bluetooth/hci.h>
8038 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8043 if ac_fn_c_try_compile
"$LINENO"; then :
8044 ac_cv_lbl_sockaddr_hci_has_hci_channel
=yes
8046 ac_cv_lbl_sockaddr_hci_has_hci_channel
=no
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8052 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8053 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8055 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8059 # OK, is HCI_CHANNEL_MONITOR defined?
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8062 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8063 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false
; then :
8064 $as_echo_n "(cached) " >&6
8066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8069 #include <bluetooth/bluetooth.h>
8070 #include <bluetooth/hci.h>
8075 u_int i = HCI_CHANNEL_MONITOR
8080 if ac_fn_c_try_compile
"$LINENO"; then :
8081 ac_cv_lbl_hci_channel_monitor_is_defined
=yes
8083 ac_cv_lbl_hci_channel_monitor_is_defined
=no
8085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8089 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8090 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8092 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8094 BT_MONITOR_SRC
=pcap-bt-monitor-linux.c
8097 ac_lbl_bluetooth_available
=yes
8100 ac_lbl_bluetooth_available
=no
8105 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8106 if test "x$enable_bluetooth" = "xyes" ; then
8107 as_fn_error $?
"Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8110 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8115 if test "x$enable_bluetooth" = "xyes" ; then
8116 as_fn_error $?
"no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8119 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8128 # Check whether --enable-canusb was given.
8129 if test "${enable_canusb+set}" = set; then :
8130 enableval
=$enable_canusb;
8132 enable_canusb
=ifsupportavailable
8136 if test "x$enable_canusb" != "xno" ; then
8139 ac_fn_c_check_header_mongrel
"$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
8140 if test "x$ac_cv_header_libusb_1_0_libusb_h" = xyes
; then :
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb-1.0" >&5
8143 $as_echo_n "checking for libusb_init in -lusb-1.0... " >&6; }
8144 if ${ac_cv_lib_usb_1_0_libusb_init+:} false
; then :
8145 $as_echo_n "(cached) " >&6
8147 ac_check_lib_save_LIBS
=$LIBS
8148 LIBS
="-lusb-1.0 $LIBS"
8149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 /* Override any GCC internal prototype to avoid an error.
8153 Use char because int might match the return type of a GCC
8154 builtin and then its argument prototype would still apply. */
8158 char libusb_init ();
8162 return libusb_init ();
8167 if ac_fn_c_try_link
"$LINENO"; then :
8168 ac_cv_lib_usb_1_0_libusb_init
=yes
8170 ac_cv_lib_usb_1_0_libusb_init
=no
8172 rm -f core conftest.err conftest.
$ac_objext \
8173 conftest
$ac_exeext conftest.
$ac_ext
8174 LIBS
=$ac_check_lib_save_LIBS
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_init" >&5
8177 $as_echo "$ac_cv_lib_usb_1_0_libusb_init" >&6; }
8178 if test "x$ac_cv_lib_usb_1_0_libusb_init" = xyes
; then :
8181 $as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h
8183 CANUSB_SRC
=pcap-canusb-linux.c
8184 LIBS
="-lusb-1.0 -lpthread $LIBS"
8185 ac_lbl_has_libusb
=yes
8188 ac_lbl_has_libusb
=no
8194 ac_lbl_has_libusb
=no
8199 if test "x$ac_lbl_has_libusb" = "xyes" ; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5
8201 $as_echo "$as_me: canusb sniffing is supported" >&6;}
8203 if test "x$enable_canusb" = "xyes" ; then
8204 as_fn_error $?
"canusb sniffing is not supported; install libusb1.0 lib devel to enable it" "$LINENO" 5
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
8207 $as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
8212 if test "x$enable_canusb" = "xyes" ; then
8213 as_fn_error $?
"no canusb support implemented for $host_os" "$LINENO" 5
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5
8216 $as_echo "$as_me: no canusb support implemented for $host_os" >&6;}
8224 # Check whether --enable-can was given.
8225 if test "${enable_can+set}" = set; then :
8226 enableval
=$enable_can;
8228 enable_can
=ifsupportavailable
8232 if test "x$enable_can" != "xno" ; then
8235 ac_fn_c_check_header_compile
"$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h>
8238 if test "x$ac_cv_header_linux_can_h" = xyes
; then :
8241 $as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h
8243 CAN_SRC
=pcap-can-linux.c
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5
8245 $as_echo "$as_me: CAN sniffing is supported" >&6;}
8249 if test "x$enable_can" = "xyes" ; then
8250 as_fn_error $?
"CAN sniffing is not supported" "$LINENO" 5
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5
8253 $as_echo "$as_me: CAN sniffing is not supported" >&6;}
8261 if test "x$enable_can" = "xyes" ; then
8262 as_fn_error $?
"no CAN sniffing support implemented for $host_os" "$LINENO" 5
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5
8265 $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
8273 # Check whether --enable-dbus was given.
8274 if test "${enable_dbus+set}" = set; then :
8275 enableval
=$enable_dbus;
8277 enable_dbus
=ifavailable
8281 if test "x$enable_dbus" != "xno"; then
8282 if test "x$enable_dbus" = "xyes"; then
8287 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8289 as_fn_error $?
"Due to freedesktop.org bug 74029, D-Bus capture support is not available on OS X" "$LINENO" 5
8297 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8302 # Extract the first word of "pkg-config", so it can be a program name with args.
8303 set dummy pkg-config
; ac_word
=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if ${ac_cv_prog_PKGCONFIG+:} false
; then :
8307 $as_echo_n "(cached) " >&6
8309 if test -n "$PKGCONFIG"; then
8310 ac_cv_prog_PKGCONFIG
="$PKGCONFIG" # Let the user override the test.
8312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8316 test -z "$as_dir" && as_dir
=.
8317 for ac_exec_ext
in '' $ac_executable_extensions; do
8318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_PKGCONFIG
="pkg-config"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG
="no"
8330 PKGCONFIG
=$ac_cv_prog_PKGCONFIG
8331 if test -n "$PKGCONFIG"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8333 $as_echo "$PKGCONFIG" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8340 if test "x$PKGCONFIG" != "xno"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8342 $as_echo_n "checking for D-Bus... " >&6; }
8343 if "$PKGCONFIG" dbus-1
; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345 $as_echo "yes" >&6; }
8346 DBUS_CFLAGS
=`"$PKGCONFIG" --cflags dbus-1`
8347 DBUS_LIBS
=`"$PKGCONFIG" --libs dbus-1`
8348 save_CFLAGS
="$CFLAGS"
8350 CFLAGS
="$CFLAGS $DBUS_CFLAGS"
8351 LIBS
="$LIBS $DBUS_LIBS"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8353 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8359 #include <sys/time.h>
8361 #include <dbus/dbus.h>
8365 return dbus_connection_read_write(NULL, 0);
8370 if ac_fn_c_try_link
"$LINENO"; then :
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8373 $as_echo "yes" >&6; }
8375 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8377 DBUS_SRC
=pcap-dbus.c
8378 V_INCLS
="$V_INCLS $DBUS_CFLAGS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 if test "x$enable_dbus" = "xyes"; then
8385 as_fn_error $?
"--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8390 rm -f core conftest.err conftest.
$ac_objext \
8391 conftest
$ac_exeext conftest.
$ac_ext
8392 CFLAGS
="$save_CFLAGS"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 if test "x$enable_dbus" = "xyes"; then
8397 as_fn_error $?
"--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8410 for ac_header
in linux
/net_tstamp.h
8412 ac_fn_c_check_header_mongrel
"$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8413 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes
; then :
8414 cat >>confdefs.h
<<_ACEOF
8415 #define HAVE_LINUX_NET_TSTAMP_H 1
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8425 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8429 # Find a good install program. We prefer a C program (faster),
8430 # so one script is as good as another. But avoid the broken or
8431 # incompatible versions:
8432 # SysV /etc/install, /usr/sbin/install
8433 # SunOS /usr/etc/install
8434 # IRIX /sbin/install
8436 # AmigaOS /C/install, which installs bootblocks on floppy discs
8437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8440 # OS/2's system install, which has a completely different semantic
8441 # ./install, which can be erroneously created by make from ./install.sh.
8442 # Reject install programs that cannot install multiple files.
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8445 if test -z "$INSTALL"; then
8446 if ${ac_cv_path_install+:} false
; then :
8447 $as_echo_n "(cached) " >&6
8449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir
=.
8454 # Account for people who put trailing slashes in PATH elements.
8455 case $as_dir/ in #((
8456 .
/ | .
// |
/[cC
]/* | \
8457 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8458 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
8461 # OSF1 and SCO ODT 3.0 have their own names for install.
8462 # Don't use installbsd from OSF since it installs stuff as root
8464 for ac_prog
in ginstall scoinst
install; do
8465 for ac_exec_ext
in '' $ac_executable_extensions; do
8466 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
8467 if test $ac_prog = install &&
8468 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8469 # AIX install. It has an incompatible calling convention.
8471 elif test $ac_prog = install &&
8472 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8473 # program-specific install script used by HP pwplus--don't use.
8476 rm -rf conftest.one conftest.two conftest.dir
8477 echo one
> conftest.one
8478 echo two
> conftest.two
8480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8481 test -s conftest.one
&& test -s conftest.two
&&
8482 test -s conftest.dir
/conftest.one
&&
8483 test -s conftest.dir
/conftest.two
8485 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8498 rm -rf conftest.one conftest.two conftest.dir
8501 if test "${ac_cv_path_install+set}" = set; then
8502 INSTALL
=$ac_cv_path_install
8504 # As a last resort, use the slow shell script. Don't cache a
8505 # value for INSTALL within a source directory, because that will
8506 # break other packages using the cache if that directory is
8507 # removed, or if the value is a relative name.
8508 INSTALL
=$ac_install_sh
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8512 $as_echo "$INSTALL" >&6; }
8514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8515 # It thinks the first close brace ends the variable substitution.
8516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8520 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8523 ac_config_headers
="$ac_config_headers config.h"
8526 ac_config_commands
="$ac_config_commands default-1"
8528 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"
8530 cat >confcache
<<\_ACEOF
8531 # This file is a shell script that caches the results of configure
8532 # tests run on this system so they can be shared between configure
8533 # scripts and configure runs, see configure's option --config-cache.
8534 # It is not useful on other systems. If it contains results you don't
8535 # want to keep, you may remove or edit it.
8537 # config.status only pays attention to the cache file if you give it
8538 # the --recheck option to rerun configure.
8540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8546 # The following way of writing the cache mishandles newlines in values,
8547 # but we know of no workaround that is simple, portable, and efficient.
8548 # So, we kill variables containing newlines.
8549 # Ultrix sh set writes to stderr and can't be redirected directly,
8550 # and sets the high bit in the cache file unless we assign to the vars.
8552 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8553 eval ac_val
=\$
$ac_var
8557 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8561 _ | IFS | as_nl
) ;; #(
8562 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8563 *) { eval $ac_var=; unset $ac_var;} ;;
8569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8570 *${as_nl}ac_space
=\
*)
8571 # `set' does not quote correctly, so add quotes: double-quote
8572 # substitution turns \\\\ into \\, and sed turns \\ into \.
8575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8578 # `set' quotes correctly as required by POSIX, so do not add quotes.
8579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8592 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8593 if test -w "$cache_file"; then
8594 if test "x$cache_file" != "x/dev/null"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8596 $as_echo "$as_me: updating cache $cache_file" >&6;}
8597 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8598 cat confcache
>"$cache_file"
8600 case $cache_file in #(
8602 mv -f confcache
"$cache_file"$$
&&
8603 mv -f "$cache_file"$$
"$cache_file" ;; #(
8605 mv -f confcache
"$cache_file" ;;
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8616 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8617 # Let make expand exec_prefix.
8618 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8620 DEFS
=-DHAVE_CONFIG_H
8625 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8626 # 1. Remove the extension, and $U if already installed.
8627 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8628 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
8629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8630 # will be set to the directory where LIBOBJS objects are built.
8631 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8632 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8636 LTLIBOBJS
=$ac_ltlibobjs
8640 : "${CONFIG_STATUS=./config.status}"
8642 ac_clean_files_save
=$ac_clean_files
8643 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8649 # Generated by $as_me.
8650 # Run this file to recreate the current configuration.
8651 # Compiler output produced by configure, useful for debugging
8652 # configure, is in config.log if it exists.
8658 SHELL=\${CONFIG_SHELL-$SHELL}
8661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8662 ## -------------------- ##
8663 ## M4sh Initialization. ##
8664 ## -------------------- ##
8666 # Be more Bourne compatible
8667 DUALCASE
=1; export DUALCASE
# for MKS sh
8668 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
8671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8672 # is contrary to our usage. Disable this feature.
8673 alias -g '${1+"$@"}'='"$@"'
8674 setopt NO_GLOB_SUBST
8676 case `(set -o) 2>/dev/null` in #(
8688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8689 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8692 # Prefer a ksh shell builtin over an external printf program on Solaris,
8693 # but without wasting forks for bash or zsh.
8694 if test -z "$BASH_VERSION$ZSH_VERSION" \
8695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8696 as_echo='print
-r --'
8697 as_echo_n='print
-rn --'
8698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8699 as_echo='printf %s
\n'
8700 as_echo_n='printf %s
'
8702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8703 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8704 as_echo_n='/usr
/ucb
/echo -n'
8706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8707 as_echo_n_body='eval
8711 expr "X$arg" : "X\\(.*\\)$as_nl";
8712 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8714 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8716 export as_echo_n_body
8717 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8720 as_echo='sh
-c $as_echo_body as_echo
'
8723 # The user is always right.
8724 if test "${PATH_SEPARATOR+set}" != set; then
8726 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8727 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8734 # We need space, tab and new line, in precisely that order. Quoting is
8735 # there to prevent editors from complaining about space-tab.
8736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8737 # splitting by setting IFS to empty value.)
8740 # Find who we are. Look in the path if we contain no directory separator.
8743 *[\\/]* ) as_myself=$0 ;;
8744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 test -z "$as_dir" && as_dir=.
8749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8755 # We did not find ourselves, most probably we were run as `sh COMMAND'
8756 # in which case we are not to be found in the path.
8757 if test "x$as_myself" = x
; then
8760 if test ! -f "$as_myself"; then
8761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8765 # Unset variables that we do not need and which cause bugs (e.g. in
8766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8767 # suppresses any "Segmentation fault" message there. '((' could
8768 # trigger a bug in pdksh 5.2.14.
8769 for as_var
in BASH_ENV ENV MAIL MAILPATH
8770 do eval test x\
${$as_var+set} = xset \
8771 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8784 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8788 # ----------------------------------------
8789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8791 # script with STATUS, using 1 if that was 0.
8794 as_status
=$1; test $as_status -eq 0 && as_status
=1
8796 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8799 $as_echo "$as_me: error: $2" >&2
8800 as_fn_exit
$as_status
8804 # as_fn_set_status STATUS
8805 # -----------------------
8806 # Set $? to STATUS, without forking.
8810 } # as_fn_set_status
8814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8824 # Portably unset VAR.
8827 { eval $1=; unset $1;}
8829 as_unset
=as_fn_unset
8830 # as_fn_append VAR VALUE
8831 # ----------------------
8832 # Append the text in VALUE to the end of the definition contained in VAR. Take
8833 # advantage of any shell optimizations that allow amortized linear growth over
8834 # repeated appends, instead of the typical quadratic growth present in naive
8836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8837 eval 'as_fn_append ()
8848 # as_fn_arith ARG...
8849 # ------------------
8850 # Perform arithmetic evaluation on the ARGs, and store the result in the
8851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8852 # must be portable across $(()) and expr.
8853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8854 eval 'as_fn_arith ()
8861 as_val
=`expr "$@" || test $? -eq 1`
8866 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8867 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8873 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8874 as_basename
=basename
8879 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8885 as_me
=`$as_basename -- "$0" ||
8886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8887 X"$0" : 'X\(//\)$' \| \
8888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8890 sed '/^.*\/\([^/][^/]*\)\/*$/{
8904 # Avoid depending upon Character Ranges.
8905 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8906 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8907 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8908 as_cr_digits
='0123456789'
8909 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8911 ECHO_C
= ECHO_N
= ECHO_T
=
8912 case `echo -n x` in #(((((
8914 case `echo 'xy\c'` in
8915 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8917 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8924 rm -f conf$$ conf$$.exe conf$$.
file
8925 if test -d conf$$.dir
; then
8926 rm -f conf$$.dir
/conf$$.
file
8929 mkdir conf$$.dir
2>/dev
/null
8931 if (echo >conf$$.
file) 2>/dev
/null
; then
8932 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8934 # ... but there are two gotchas:
8935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8937 # In both cases, we have to default to `cp -pR'.
8938 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8940 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8948 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8949 rmdir conf$$.dir
2>/dev
/null
8954 # Create "$as_dir" as a directory, including parents if necessary.
8959 -*) as_dir
=.
/$as_dir;;
8961 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8965 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8966 *) as_qdir
=$as_dir;;
8968 as_dirs
="'$as_qdir' $as_dirs"
8969 as_dir
=`$as_dirname -- "$as_dir" ||
8970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8971 X"$as_dir" : 'X\(//\)[^/]' \| \
8972 X"$as_dir" : 'X\(//\)$' \| \
8973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8974 $as_echo X"$as_dir" |
8975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8992 test -d "$as_dir" && break
8994 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8995 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8999 if mkdir
-p .
2>/dev
/null
; then
9000 as_mkdir_p
='mkdir -p "$as_dir"'
9002 test -d .
/-p && rmdir .
/-p
9007 # as_fn_executable_p FILE
9008 # -----------------------
9009 # Test if FILE is an executable regular file.
9010 as_fn_executable_p
()
9012 test -f "$1" && test -x "$1"
9013 } # as_fn_executable_p
9015 as_executable_p
=as_fn_executable_p
9017 # Sed expression to map a string onto a valid CPP name.
9018 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9020 # Sed expression to map a string onto a valid variable name.
9021 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9025 ## ----------------------------------- ##
9026 ## Main body of $CONFIG_STATUS script. ##
9027 ## ----------------------------------- ##
9029 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9032 # Save the log message, to keep $0 and so on meaningful, and to
9033 # report actual input values of CONFIG_FILES etc. instead of their
9034 # values after options handling.
9036 This file was extended by $as_me, which was
9037 generated by GNU Autoconf 2.69. Invocation command line was
9039 CONFIG_FILES = $CONFIG_FILES
9040 CONFIG_HEADERS = $CONFIG_HEADERS
9041 CONFIG_LINKS = $CONFIG_LINKS
9042 CONFIG_COMMANDS = $CONFIG_COMMANDS
9045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9050 case $ac_config_files in *"
9051 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9054 case $ac_config_headers in *"
9055 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9060 # Files that config.status was made for.
9061 config_files="$ac_config_files"
9062 config_headers="$ac_config_headers"
9063 config_commands="$ac_config_commands"
9067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9069 \`$as_me' instantiates files and other configuration actions
9070 from templates according to the current configuration. Unless the files
9071 and actions are specified as TAGs, all are instantiated by default.
9073 Usage: $0 [OPTION]... [TAG]...
9075 -h, --help print this help, then exit
9076 -V, --version print version number and configuration settings, then exit
9077 --config print configuration, then exit
9078 -q, --quiet, --silent
9079 do not print progress messages
9080 -d, --debug don't remove temporary files
9081 --recheck update $as_me by reconfiguring in the same conditions
9082 --file=FILE[:TEMPLATE]
9083 instantiate the configuration file FILE
9084 --header=FILE[:TEMPLATE]
9085 instantiate the configuration header FILE
9087 Configuration files:
9090 Configuration headers:
9093 Configuration commands:
9096 Report bugs to the package provider."
9099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9100 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9103 configured by $0, generated by GNU Autoconf 2.69,
9104 with options \\"\$ac_cs_config\\"
9106 Copyright (C) 2012 Free Software Foundation, Inc.
9107 This config.status script is free software; the Free Software Foundation
9108 gives unlimited permission to copy, distribute and modify it."
9113 test -n "\$AWK" || AWK=awk
9116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9117 # The default lists apply if the user does not specify any file.
9123 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9124 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9128 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9140 # Handling of the options.
9141 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9143 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9144 $as_echo "$ac_cs_version"; exit ;;
9145 --config |
--confi |
--conf |
--con |
--co |
--c )
9146 $as_echo "$ac_cs_config"; exit ;;
9147 --debug |
--debu |
--deb |
--de |
--d |
-d )
9149 --file |
--fil |
--fi |
--f )
9152 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9153 '') as_fn_error $?
"missing file argument" ;;
9155 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9156 ac_need_defaults
=false
;;
9157 --header |
--heade |
--head |
--hea )
9160 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9162 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9163 ac_need_defaults
=false
;;
9165 # Conflict between --help and --header
9166 as_fn_error $?
"ambiguous option: \`$1'
9167 Try \`$0 --help' for more information.";;
9168 --help |
--hel |
-h )
9169 $as_echo "$ac_cs_usage"; exit ;;
9170 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9171 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9175 -*) as_fn_error $?
"unrecognized option: \`$1'
9176 Try \`$0 --help' for more information." ;;
9178 *) as_fn_append ac_config_targets
" $1"
9179 ac_need_defaults
=false
;;
9185 ac_configure_extra_args
=
9187 if $ac_cs_silent; then
9189 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9194 if \$ac_cs_recheck; then
9195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9198 CONFIG_SHELL='$SHELL'
9204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9209 ## Running $as_me. ##
9215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9225 # Handling of arguments.
9226 for ac_config_target
in $ac_config_targets
9228 case $ac_config_target in
9229 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9230 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9231 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9232 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9233 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9234 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9235 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9236 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9237 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9238 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9239 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9240 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9241 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9242 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9243 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9244 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9245 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9246 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9248 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9253 # If the user did not use the arguments to specify the items to instantiate,
9254 # then the envvar interface is used. Set only those that are not.
9255 # We use the long form for the default assignment because of an extremely
9256 # bizarre bug on SunOS 4.1.3.
9257 if $ac_need_defaults; then
9258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9263 # Have a temporary directory for convenience. Make it in the build tree
9264 # simply because there is no reason against having it here, and in addition,
9265 # creating and moving files from /tmp can sometimes cause problems.
9266 # Hook for its removal unless debugging.
9267 # Note that there is a small window in which the directory will not be cleaned:
9268 # after its creation but before its name has been assigned to `$tmp'.
9272 trap 'exit_status=$?
9274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9276 trap 'as_fn_exit 1' 1 2 13 15
9278 # Create a (secure) tmp directory for tmp files.
9281 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9285 tmp
=.
/conf$$
-$RANDOM
9286 (umask 077 && mkdir
"$tmp")
9287 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9290 # Set up the scripts for CONFIG_FILES section.
9291 # No need to generate them if there are no CONFIG_FILES.
9292 # This happens for instance with `./config.status config.h'.
9293 if test -n "$CONFIG_FILES"; then
9296 ac_cr
=`echo X | tr X '\015'`
9297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9298 # But we know of no other shell where ac_cr would be empty at this
9299 # point, so we can use a bashism as a fallback.
9300 if test "x$ac_cr" = x
; then
9301 eval ac_cr
=\$
\'\\r
\'
9303 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9315 echo "cat >conf$$subs.awk <<_ACEOF" &&
9316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9319 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9322 for ac_last_try in false false false false false :; do
9323 . ./conf$$subs.sh ||
9324 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9326 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9327 if test $ac_delim_n = $ac_delim_num; then
9329 elif $ac_last_try; then
9330 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9332 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9338 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9342 s/^/S["/; s
/!.
*/"]=/
9352 s/\(.\{148\}\)..*/\1/
9354 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9359 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9366 s/\(.\{148\}\)..*/\1/
9368 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9372 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9377 ' <conf$$subs.awk | sed '
9382 ' >>$CONFIG_STATUS || ac_write_fail=1
9383 rm -f conf$$subs.awk
9384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9386 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9387 for (key in S) S_is_set[key] = 1
9393 nfields = split(line, field, "@
")
9395 len = length(field[1])
9396 for (i = 2; i < nfields; i++) {
9398 keylen = length(key)
9399 if (S_is_set[key]) {
9401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9402 len += length(value) + length(field[++i])
9413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9414 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9415 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9418 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9419 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9424 # trailing colons and then remove the whole line if VPATH becomes empty
9425 # (actually we leave an empty line to preserve line numbers).
9426 if test "x
$srcdir" = x.; then
9427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9446 fi # test -n "$CONFIG_FILES"
9448 # Set up the scripts for CONFIG_HEADERS section.
9449 # No need to generate them if there are no CONFIG_HEADERS.
9450 # This happens for instance with `./config.status Makefile'.
9451 if test -n "$CONFIG_HEADERS"; then
9452 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9456 # Transform confdefs.h into an awk script `defines.awk', embedded as
9457 # here-document in config.status, that substitutes the proper values into
9458 # config.h.in to produce config.h.
9460 # Create a delimiter string that does not exist in confdefs.h, to ease
9461 # handling of long lines.
9463 for ac_last_try in false false :; do
9464 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9465 if test -z "$ac_tt"; then
9467 elif $ac_last_try; then
9468 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9470 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9474 # For the awk script, D is an array of macro values keyed by name,
9475 # likewise P contains macro parameters if any. Preserve backslash
9476 # newline sequences.
9478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9480 s/.\{148\}/&'"$ac_delim"'/g
9483 s/^[ ]*#[ ]*define[ ][ ]*/ /
9490 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9492 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
9496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
9497 D["\
1"]=" \
3\\\\\\n
"\\/p
9499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
9504 s/.\{148\}/&'"$ac_delim"'/g
9509 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
9512 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
9514 ' <confdefs.h | sed '
9515 s/'"$ac_delim"'/"\\\
9516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9519 for (key in D) D_is_set[key] = 1
9522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9524 split(line, arg, " ")
9525 if (arg[1] == "#") {
9529 defundef
= substr
(arg
[1], 2)
9532 split(mac1
, mac2
, "(") #)
9534 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9535 if (D_is_set
[macro
]) {
9536 # Preserve the white space surrounding the "#".
9537 print prefix
"define", macro P
[macro
] D
[macro
]
9540 # Replace #undef with comments. This is necessary, for example,
9541 # in the case of _POSIX_SOURCE, which is predefined and required
9542 # on some systems where configure will not decide to define it.
9543 if (defundef
== "undef") {
9544 print
"/*", prefix defundef
, macro
, "*/"
9552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9553 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9554 fi # test -n "$CONFIG_HEADERS"
9557 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9562 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9564 case $ac_mode$ac_tag in
9566 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9567 :[FH
]-) ac_tag
=-:-;;
9568 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9585 -) ac_f
="$ac_tmp/stdin";;
9586 *) # Look for the file first in the build tree, then in the source tree
9587 # (if the path is not absolute). The absolute path cannot be DOS-style,
9588 # because $ac_f cannot contain `:'.
9592 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9594 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9596 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9597 as_fn_append ac_file_inputs
" '$ac_f'"
9600 # Let's still pretend it is `configure' which instantiates (i.e., don't
9601 # use $as_me), people would be surprised to read:
9602 # /* config.h. Generated by config.status. */
9603 configure_input
='Generated from '`
9604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9606 if test x
"$ac_file" != x-
; then
9607 configure_input
="$ac_file. $configure_input"
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9609 $as_echo "$as_me: creating $ac_file" >&6;}
9611 # Neutralize special characters interpreted by sed in replacement strings.
9612 case $configure_input in #(
9613 *\
&* |
*\|
* |
*\\* )
9614 ac_sed_conf_input
=`$as_echo "$configure_input" |
9615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9616 *) ac_sed_conf_input
=$configure_input;;
9620 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9621 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9626 ac_dir
=`$as_dirname -- "$ac_file" ||
9627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9628 X"$ac_file" : 'X\(//\)[^/]' \| \
9629 X"$ac_file" : 'X\(//\)$' \| \
9630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9631 $as_echo X"$ac_file" |
9632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9649 as_dir
="$ac_dir"; as_fn_mkdir_p
9653 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9655 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9656 # A ".." for each directory in $ac_dir_suffix.
9657 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9658 case $ac_top_builddir_sub in
9659 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9660 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9663 ac_abs_top_builddir
=$ac_pwd
9664 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9665 # for backward compatibility:
9666 ac_top_builddir
=$ac_top_build_prefix
9669 .
) # We are building in place.
9671 ac_top_srcdir
=$ac_top_builddir_sub
9672 ac_abs_top_srcdir
=$ac_pwd ;;
9673 [\\/]* | ?
:[\\/]* ) # Absolute name.
9674 ac_srcdir
=$srcdir$ac_dir_suffix;
9675 ac_top_srcdir
=$srcdir
9676 ac_abs_top_srcdir
=$srcdir ;;
9678 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9679 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9680 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9682 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9692 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9693 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9698 # If the template does not know about datarootdir, expand it.
9699 # FIXME: This hack should be removed a few years after 2.60.
9700 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9712 *datarootdir
*) ac_datarootdir_seen
=yes;;
9713 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9718 ac_datarootdir_hack='
9719 s&@datadir@&$datadir&g
9720 s&@docdir@&$docdir&g
9721 s&@infodir@&$infodir&g
9722 s&@localedir@&$localedir&g
9723 s&@mandir@&$mandir&g
9724 s&\\\${datarootdir}&$datarootdir&g' ;;
9728 # Neutralize VPATH when `$srcdir' = `.'.
9729 # Shell code in configure.ac might set extrasub.
9730 # FIXME: do we really want to maintain this feature?
9731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9732 ac_sed_extra="$ac_vpsub
9735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9737 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9738 s|@configure_input@|
$ac_sed_conf_input|
;t t
9739 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9740 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9741 s
&@srcdir@
&$ac_srcdir&;t t
9742 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9743 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9744 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9745 s
&@builddir@
&$ac_builddir&;t t
9746 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9747 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9748 s
&@INSTALL@
&$ac_INSTALL&;t t
9749 $ac_datarootdir_hack
9751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9752 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9755 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9757 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9759 which seems to be undefined. Please make sure it is defined" >&5
9760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9761 which seems to be undefined. Please make sure it is defined" >&2;}
9763 rm -f "$ac_tmp/stdin"
9765 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9766 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9774 if test x"$ac_file" != x-; then
9776 $as_echo "/* $configure_input */" \
9777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9778 } >"$ac_tmp/config.h" \
9779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9780 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9785 mv "$ac_tmp/config.h" "$ac_file" \
9786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9789 $as_echo "/* $configure_input */" \
9790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9791 || as_fn_error $? "could not create -" "$LINENO" 5
9795 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9796 $as_echo "$as_me: executing $ac_file commands" >&6;}
9801 case $ac_file$ac_mode in
9802 "default-1":C) if test -f .devel; then
9803 echo timestamp > stamp-h
9804 cat Makefile-devel-adds >> Makefile
9814 ac_clean_files=$ac_clean_files_save
9816 test $ac_write_fail = 0 ||
9817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9820 # configure is writing to config.log, and then calls config.status.
9821 # config.status does its own redirection, appending to config.log.
9822 # Unfortunately, on DOS this fails, as config.log is still kept open
9823 # by configure, so config.status won't be able to
write to it
; its
9824 # output is simply discarded. So we exec the FD to /dev/null,
9825 # effectively closing config.log, so it can be properly (re)opened and
9826 # appended to by config.status. When coming back to configure, we
9827 # need to make the FD available again.
9828 if test "$no_create" != yes; then
9830 ac_config_status_args
=
9831 test "$silent" = yes &&
9832 ac_config_status_args
="$ac_config_status_args --quiet"
9834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9837 # would make configure fail if this is the last instruction.
9838 $ac_cs_success || as_fn_exit
1
9840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}