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
627 PCAP_SUPPORT_RDMASNIFF
628 PCAP_SUPPORT_PACKET_RING
638 PCAP_SUPPORT_NETFILTER
671 HAVE_LINUX_TPACKET_AUXDATA
724 program_transform_name
737 enable_option_checking
765 ac_precious_vars
='build_alias
778 # Initialize some variables set by options.
780 ac_init_version
=false
781 ac_unrecognized_opts
=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name
=s
,x
,x
,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir
='${exec_prefix}/bin'
807 sbindir
='${exec_prefix}/sbin'
808 libexecdir
='${exec_prefix}/libexec'
809 datarootdir
='${prefix}/share'
810 datadir
='${datarootdir}'
811 sysconfdir
='${prefix}/etc'
812 sharedstatedir
='${prefix}/com'
813 localstatedir
='${prefix}/var'
814 includedir
='${prefix}/include'
815 oldincludedir
='/usr/include'
816 docdir
='${datarootdir}/doc/${PACKAGE}'
817 infodir
='${datarootdir}/info'
822 libdir
='${exec_prefix}/lib'
823 localedir
='${datarootdir}/locale'
824 mandir
='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\
$ac_option
838 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
851 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
854 -build |
--build |
--buil |
--bui |
--bu)
855 ac_prev
=build_alias
;;
856 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
857 build_alias
=$ac_optarg ;;
859 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
860 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
861 ac_prev
=cache_file
;;
862 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
863 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
864 cache_file
=$ac_optarg ;;
867 cache_file
=config.cache
;;
869 -datadir |
--datadir |
--datadi |
--datad)
871 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
872 datadir
=$ac_optarg ;;
874 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
875 |
--dataroo |
--dataro |
--datar)
876 ac_prev
=datarootdir
;;
877 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
878 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
879 datarootdir
=$ac_optarg ;;
881 -disable-* |
--disable-*)
882 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
885 as_fn_error $?
"invalid feature name: $ac_useropt"
886 ac_useropt_orig
=$ac_useropt
887 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep
=', ';;
895 eval enable_
$ac_useropt=no
;;
897 -docdir |
--docdir |
--docdi |
--doc |
--do)
899 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
902 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
904 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
907 -enable-* |
--enable-*)
908 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
911 as_fn_error $?
"invalid feature name: $ac_useropt"
912 ac_useropt_orig
=$ac_useropt
913 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep
=', ';;
921 eval enable_
$ac_useropt=\
$ac_optarg ;;
923 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
924 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
925 |
--exec |
--exe |
--ex)
926 ac_prev
=exec_prefix
;;
927 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
928 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
929 |
--exec=* |
--exe=* |
--ex=*)
930 exec_prefix
=$ac_optarg ;;
932 -gas |
--gas |
--ga |
--g)
933 # Obsolete; use --with-gas.
936 -help |
--help |
--hel |
--he |
-h)
938 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
939 ac_init_help
=recursive
;;
940 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
941 ac_init_help
=short
;;
943 -host |
--host |
--hos |
--ho)
944 ac_prev
=host_alias
;;
945 -host=* |
--host=* |
--hos=* |
--ho=*)
946 host_alias
=$ac_optarg ;;
948 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
950 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
952 htmldir
=$ac_optarg ;;
954 -includedir |
--includedir |
--includedi |
--included |
--include \
955 |
--includ |
--inclu |
--incl |
--inc)
956 ac_prev
=includedir
;;
957 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
958 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
959 includedir
=$ac_optarg ;;
961 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
963 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
964 infodir
=$ac_optarg ;;
966 -libdir |
--libdir |
--libdi |
--libd)
968 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
971 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
972 |
--libexe |
--libex |
--libe)
973 ac_prev
=libexecdir
;;
974 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
975 |
--libexe=* |
--libex=* |
--libe=*)
976 libexecdir
=$ac_optarg ;;
978 -localedir |
--localedir |
--localedi |
--localed |
--locale)
980 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
981 localedir
=$ac_optarg ;;
983 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
984 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
985 ac_prev
=localstatedir
;;
986 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
987 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
988 localstatedir
=$ac_optarg ;;
990 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
992 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
996 # Obsolete; use --without-fp.
999 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1000 |
--no-cr |
--no-c |
-n)
1003 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1004 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1007 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1008 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1009 |
--oldin |
--oldi |
--old |
--ol |
--o)
1010 ac_prev
=oldincludedir
;;
1011 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1012 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1013 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1014 oldincludedir
=$ac_optarg ;;
1016 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1018 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1019 prefix
=$ac_optarg ;;
1021 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1022 |
--program-pre |
--program-pr |
--program-p)
1023 ac_prev
=program_prefix
;;
1024 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1025 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1026 program_prefix
=$ac_optarg ;;
1028 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1029 |
--program-suf |
--program-su |
--program-s)
1030 ac_prev
=program_suffix
;;
1031 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1032 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1033 program_suffix
=$ac_optarg ;;
1035 -program-transform-name |
--program-transform-name \
1036 |
--program-transform-nam |
--program-transform-na \
1037 |
--program-transform-n |
--program-transform- \
1038 |
--program-transform |
--program-transfor \
1039 |
--program-transfo |
--program-transf \
1040 |
--program-trans |
--program-tran \
1041 |
--progr-tra |
--program-tr |
--program-t)
1042 ac_prev
=program_transform_name
;;
1043 -program-transform-name=* |
--program-transform-name=* \
1044 |
--program-transform-nam=* |
--program-transform-na=* \
1045 |
--program-transform-n=* |
--program-transform-=* \
1046 |
--program-transform=* |
--program-transfor=* \
1047 |
--program-transfo=* |
--program-transf=* \
1048 |
--program-trans=* |
--program-tran=* \
1049 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1050 program_transform_name
=$ac_optarg ;;
1052 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1054 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1055 pdfdir
=$ac_optarg ;;
1057 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1059 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1062 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1063 |
-silent |
--silent |
--silen |
--sile |
--sil)
1066 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1068 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1070 sbindir
=$ac_optarg ;;
1072 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1073 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1074 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1076 ac_prev
=sharedstatedir
;;
1077 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1078 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1079 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1081 sharedstatedir
=$ac_optarg ;;
1083 -site |
--site |
--sit)
1085 -site=* |
--site=* |
--sit=*)
1088 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1090 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1091 srcdir
=$ac_optarg ;;
1093 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1094 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1095 ac_prev
=sysconfdir
;;
1096 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1097 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1098 sysconfdir
=$ac_optarg ;;
1100 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1101 ac_prev
=target_alias
;;
1102 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1103 target_alias
=$ac_optarg ;;
1105 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1108 -version |
--version |
--versio |
--versi |
--vers |
-V)
1109 ac_init_version
=: ;;
1112 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1115 as_fn_error $?
"invalid package name: $ac_useropt"
1116 ac_useropt_orig
=$ac_useropt
1117 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep
=', ';;
1125 eval with_
$ac_useropt=\
$ac_optarg ;;
1127 -without-* |
--without-*)
1128 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid package name: $ac_useropt"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval with_
$ac_useropt=no
;;
1144 # Obsolete; use --with-x.
1147 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1148 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1149 ac_prev
=x_includes
;;
1150 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1151 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1152 x_includes
=$ac_optarg ;;
1154 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1155 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1156 ac_prev
=x_libraries
;;
1157 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1158 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1159 x_libraries
=$ac_optarg ;;
1161 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1166 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1170 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1172 eval $ac_envvar=\
$ac_optarg
1173 export $ac_envvar ;;
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 if test -n "$ac_prev"; then
1187 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $?
"missing argument to $ac_option"
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1194 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val
=\$
$ac_var
1206 # Remove trailing slashes.
1209 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\
$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$
]* | ?
:[\\/]* ) continue;;
1215 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1217 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target
=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x
; then
1229 if test "x$build_alias" = x
; then
1230 cross_compiling
=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1239 test "$silent" = yes && exec 6>/dev
/null
1242 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di
=`ls -di .` &&
1244 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $?
"working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $?
"pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted
=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir
=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted
=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1286 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var
in $ac_precious_vars; do
1303 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1305 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures this package to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure
for building on BUILD
[guessed
]
1375 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1376 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1380 if test -n "$ac_init_help"; then
1385 --disable-option-checking ignore unrecognized
--enable/--with options
1386 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1387 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1388 --disable-largefile omit support
for large files
1389 --disable-protochain disable
\"protochain
\" insn
1390 --enable-ipv6 build IPv6-capable version
[default
=yes, if
1391 getaddrinfo available
]
1392 --enable-optimizer-dbg build optimizer debugging code
1393 --enable-yydebug build parser debugging code
1394 --enable-remote enable remote packet capture
[default
=no
]
1395 --disable-remote disable remote packet capture
1396 --disable-universal don
't build universal on macOS
1397 --enable-shared build shared libraries [default=yes, if support
1399 --enable-usb enable nusb support [default=yes, if support
1401 --enable-netmap enable netmap support [default=yes, if support
1403 --enable-bluetooth enable Bluetooth support [default=yes, if support
1405 --enable-dbus enable D-Bus capture support [default=yes, if
1407 --enable-packet-ring enable Linux packet ring support [default=yes]
1408 --enable-rdma enable RDMA capture support [default=yes, if support
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --without-gcc don't use gcc
1415 --with-sita include SITA support
1416 --with-pcap=TYPE use packet capture TYPE
1417 --without-libnl disable libnl support
[default
=yes, on Linux
, if
1419 --with-dag[=DIR
] include Endace DAG support
(located
in directory
1420 DIR
, if supplied
).
[default
=yes, if present
]
1421 --with-dag-includes=IDIR
1422 Endace DAG include directory
, if not DIR
/include
1423 --with-dag-libraries=LDIR
1424 Endace DAG library directory
, if not DIR
/lib
1425 --with-septel[=DIR
] include Septel support
(located
in directory DIR
, if
1426 supplied
).
[default
=yes, if present
]
1427 --with-snf[=DIR
] include Myricom SNF support
(located
in directory
1428 DIR
, if supplied
).
[default
=yes, if present
]
1429 --with-snf-includes=IDIR
1430 Myricom SNF include directory
, if not DIR
/include
1431 --with-snf-libraries=LDIR
1432 Myricom SNF library directory
, if not DIR
/lib
1433 --with-turbocap[=DIR
] include Riverbed TurboCap support
(located
in
1434 directory DIR
, if supplied
).
[default
=yes, if
1437 Some influential environment variables
:
1438 CC C compiler
command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1441 nonstandard directory
<lib dir
>
1442 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1443 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1444 you have headers
in a nonstandard directory
<include dir
>
1446 YACC The
`Yet Another Compiler Compiler' implementation to use.
1447 Defaults to the first program found out of: `bison
-y', `byacc',
1449 YFLAGS The list of arguments that will be passed by default to $YACC.
1450 This script will default YFLAGS to the empty string to avoid a
1451 default value of `-d' given by some make applications.
1453 Use these variables to override the choices made by `configure' or to
help
1454 it to
find libraries and programs with nonstandard names
/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1470 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1472 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1477 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir
=$ac_pwd
1481 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir
=$ac_top_build_prefix
1486 .
) # We are building in place.
1488 ac_top_srcdir
=$ac_top_builddir_sub
1489 ac_abs_top_srcdir
=$ac_pwd ;;
1490 [\\/]* | ?
:[\\/]* ) # Absolute name.
1491 ac_srcdir
=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir
=$srcdir
1493 ac_abs_top_srcdir
=$srcdir ;;
1495 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1520 generated by GNU Autoconf
2.69
1522 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1523 This configure
script is free software
; the Free Software Foundation
1524 gives unlimited permission to copy
, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile
()
1538 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1539 rm -f conftest.
$ac_objext
1540 if { { ac_try
="$ac_compile"
1542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1569 } # ac_fn_c_try_compile
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1581 *) ac_try_echo
=$ac_try;;
1583 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1587 if test -s conftest.err
; then
1588 grep -v '^ *+' conftest.err
>conftest.er1
1589 cat conftest.er1
>&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest
$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest
$ac_exeext
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.
$ac_ext >&5
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status
$ac_retval
1615 } # ac_fn_c_try_link
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1623 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1654 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657 # the include files in INCLUDES and setting the cache variable VAR
1659 ac_fn_c_check_header_mongrel ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if eval \${$3+:} false; then :
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1672 # Is the header compilable?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674 $as_echo_n "checking $2 usability... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_header_compiler=yes
1683 ac_header_compiler=no
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687 $as_echo "$ac_header_compiler" >&6; }
1689 # Is the header present?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691 $as_echo_n "checking $2 presence... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1696 if ac_fn_c_try_cpp "$LINENO"; then :
1697 ac_header_preproc=yes
1699 ac_header_preproc=no
1701 rm -f conftest.err conftest.i conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703 $as_echo "$ac_header_preproc" >&6; }
1705 # So? What about this header?
1706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1717 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1721 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1731 eval "$3=\$ac_header_compiler"
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_mongrel
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1751 *) ac_try_echo
=$ac_try;;
1753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_header_compile
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1837 # include <limits.h>
1839 # include <assert.h>
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1866 if ac_fn_c_try_link "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_func
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1882 # ---------------------------------------------
1883 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1885 ac_fn_c_check_decl ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1889 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1901 #ifndef $as_decl_name
1903 (void) $as_decl_use;
1905 (void) $as_decl_name;
1913 if ac_fn_c_try_compile "$LINENO"; then :
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 } # ac_fn_c_check_decl
1927 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1928 # -------------------------------------------
1929 # Tests whether TYPE exists after having included INCLUDES, setting cache
1930 # variable VAR accordingly.
1931 ac_fn_c_check_type ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1965 if ac_fn_c_try_compile "$LINENO"; then :
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_type
1980 cat >config.log <<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by $as_me, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2009 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 $as_echo "PATH: $as_dir"
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_must_keep_next=false
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2056 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1 " '$ac_arg'"
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2074 -* ) ac_must_keep_next=true ;;
2077 as_fn_append ac_configure_args " '$ac_arg'"
2082 { ac_configure_args0=; unset ac_configure_args0;}
2083 { ac_configure_args1=; unset ac_configure_args1;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2102 eval ac_val=\$$ac_var
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2117 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2139 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 $as_echo "$ac_var='\''$ac_val'\''"
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2150 for ac_var in $ac_subst_files
2152 eval ac_val=\$$ac_var
2154 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 $as_echo "$ac_var='\''$ac_val'\''"
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $? "failed to load site
script $ac_site_file
2243 See \
`config.log' for more details" "$LINENO" 5; }
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264 # Check that the precious variables saved in the cache have kept the same
2266 ac_cache_corrupted=false
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2275 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2279 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x
$ac_old_val`
2286 ac_new_val_w=`echo x
$ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2290 ac_cache_corrupted=:
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 if test -f "$ac_dir/install-sh"; then
2337 ac_install_sh="$ac_aux_dir/install-sh -c"
2339 elif test -f "$ac_dir/install.sh"; then
2341 ac_install_sh="$ac_aux_dir/install.sh -c"
2343 elif test -f "$ac_dir/shtool"; then
2345 ac_install_sh="$ac_aux_dir/shtool install -c"
2349 if test -z "$ac_aux_dir"; then
2350 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362 # Make sure we can run config.sub.
2363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2364 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2367 $as_echo_n "checking build system type... " >&6; }
2368 if ${ac_cv_build+:} false; then :
2369 $as_echo_n "(cached) " >&6
2371 ac_build_alias=$build_alias
2372 test "x$ac_build_alias" = x &&
2373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2374 test "x$ac_build_alias" = x &&
2375 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2376 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2381 $as_echo "$ac_cv_build" >&6; }
2382 case $ac_cv_build in
2384 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2387 ac_save_IFS=$IFS; IFS='-'
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2397 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2401 $as_echo_n "checking host system type... " >&6; }
2402 if ${ac_cv_host+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 if test "x$host_alias" = x; then
2406 ac_cv_host=$ac_cv_build
2408 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2414 $as_echo "$ac_cv_host" >&6; }
2417 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2420 ac_save_IFS=$IFS; IFS='-'
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2430 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2434 $as_echo_n "checking target system type... " >&6; }
2435 if ${ac_cv_target+:} false; then :
2436 $as_echo_n "(cached) " >&6
2438 if test "x$target_alias" = x; then
2439 ac_cv_target=$ac_cv_host
2441 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2447 $as_echo "$ac_cv_target" >&6; }
2448 case $ac_cv_target in
2450 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2452 target=$ac_cv_target
2453 ac_save_IFS=$IFS; IFS='-'
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2463 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2466 # The aliases save the names the user supplied, while $host etc.
2467 # will get canonicalized.
2468 test -n "$target_alias" &&
2469 test "$program_prefix$program_suffix$program_transform_name" = \
2471 program_prefix=${target_alias}-
2480 # Check whether --with-gcc was given.
2481 if test "${with_gcc+set}" = set; then :
2486 if test "${srcdir}" != "." ; then
2487 V_CCOPT="-I\$(srcdir)"
2489 if test "${CFLAGS+set}" = set; then
2490 LBL_CFLAGS="$CFLAGS"
2492 if test -z "$CC" ; then
2496 # Extract the first word of "shlicc2", so it can be a program name with args.
2497 set dummy shlicc2; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_SHLICC2+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 if test -n "$SHLICC2"; then
2504 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_SHLICC2="yes"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2524 SHLICC2=$ac_cv_prog_SHLICC2
2525 if test -n "$SHLICC2"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2527 $as_echo "$SHLICC2" >&6; }
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2534 if test $SHLICC2 = yes ; then
2541 if test -z "$CC" -a "$with_gcc" = no ; then
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2590 if test -z "$ac_cv_prog_CC"; then
2592 # Extract the first word of "gcc", so it can be a program name with args.
2593 set dummy gcc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_ac_ct_CC="gcc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2622 $as_echo "$ac_ct_CC" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2628 if test "x$ac_ct_CC" = x; then
2631 case $cross_compiling:$ac_tool_warned in
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2643 if test -z "$CC"; then
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2646 set dummy ${ac_tool_prefix}cc; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false; then :
2650 $as_echo_n "(cached) " >&6
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC="${ac_tool_prefix}cc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2684 if test -z "$CC"; then
2685 # Extract the first word of "cc", so it can be a program name with args.
2686 set dummy cc; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2704 ac_prog_rejected=yes
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 if test $ac_prog_rejected = yes; then
2716 # We found a bogon in the path, so make sure we never use it.
2717 set dummy $ac_cv_prog_CC
2719 if test $# != 0; then
2720 # We chose a different compiler from the bogus one.
2721 # However, it has the same basename, so the bogon will be chosen
2722 # first if we set CC to just the basename; use the full file name.
2724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730 if test -n "$CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2732 $as_echo "$CC" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2740 if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 for ac_prog in cl.exe
2744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2781 test -n "$CC" && break
2784 if test -z "$CC"; then
2786 for ac_prog in cl.exe
2788 # Extract the first word of "$ac_prog", so it can be a program name with args.
2789 set dummy $ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2825 test -n "$ac_ct_CC" && break
2828 if test "x$ac_ct_CC" = x; then
2831 case $cross_compiling:$ac_tool_warned in
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2846 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2847 See \
`config.log' for more details" "$LINENO" 5; }
2849 # Provide some information about the compiler.
2850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2853 for ac_option in --version -v -V -qversion; do
2854 { { ac_try="$ac_compiler $ac_option >&5"
2856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2857 *) ac_try_echo
=$ac_try;;
2859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2863 if test -s conftest.err
; then
2865 ... rest of stderr output deleted ...
2866 10q' conftest.err
>conftest.er1
2867 cat conftest.er1
>&5
2869 rm -f conftest.er1 conftest.err
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }
2874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2885 ac_clean_files_save
=$ac_clean_files
2886 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2891 $as_echo_n "checking whether the C compiler works... " >&6; }
2892 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2894 # The possible output files:
2895 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2898 for ac_file
in $ac_files
2901 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2902 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2907 if { { ac_try
="$ac_link_default"
2909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link_default") 2>&5
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2919 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2920 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2921 # so that the user can short-circuit this test for compilers unknown to
2923 for ac_file in $ac_files ''
2925 test -f "$ac_file" || continue
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2930 # We found the default executable, but exeext='' is most
2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 # We set ac_cv_exeext here because the later test for it is not
2939 # safe: cross compilers may not add the suffix if given an `-o'
2940 # argument, so we may need to know it at that point already.
2941 # Even if this section looks crufty: it has the advantage of
2948 test "$ac_cv_exeext" = no && ac_cv_exeext=
2953 if test -z "$ac_file"; then :
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's
/^
/|
/' conftest.$ac_ext >&5
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2961 as_fn_error 77 "C compiler cannot create executables
2962 See \`config.log
' for more details" "$LINENO" 5; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2968 $as_echo_n "checking for C compiler default output file name... " >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2970 $as_echo "$ac_file" >&6; }
2971 ac_exeext=$ac_cv_exeext
2973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2974 ac_clean_files=$ac_clean_files_save
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2976 $as_echo_n "checking for suffix of executables... " >&6; }
2977 if { { ac_try="$ac_link"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link") 2>&5
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2989 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2990 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2992 for ac_file
in conftest.exe conftest conftest.
*; do
2993 test -f "$ac_file" ||
continue
2995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2996 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3005 See \`config.log' for more details" "$LINENO" 5; }
3007 rm -f conftest conftest
$ac_cv_exeext
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3009 $as_echo "$ac_cv_exeext" >&6; }
3011 rm -f conftest.
$ac_ext
3012 EXEEXT
=$ac_cv_exeext
3014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3020 FILE *f = fopen ("conftest.out", "w");
3021 return ferror (f) || fclose (f) != 0;
3027 ac_clean_files
="$ac_clean_files conftest.out"
3028 # Check that the compiler produces executables we can run. If not, either
3029 # the compiler is broken, or we cross compile.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3031 $as_echo_n "checking whether we are cross compiling... " >&6; }
3032 if test "$cross_compiling" != yes; then
3033 { { ac_try
="$ac_link"
3035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 $as_echo "$ac_try_echo"; } >&5
3040 (eval "$ac_link") 2>&5
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044 if { ac_try='./conftest$ac_cv_exeext'
3045 { { case "(($ac_try" in
3046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3047 *) ac_try_echo
=$ac_try;;
3049 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_try") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }; }; then
3057 if test "$cross_compiling" = maybe
; then
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error $?
"cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details" "$LINENO" 5; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3069 $as_echo "$cross_compiling" >&6; }
3071 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3072 ac_clean_files
=$ac_clean_files_save
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3074 $as_echo_n "checking for suffix of object files... " >&6; }
3075 if ${ac_cv_objext+:} false
; then :
3076 $as_echo_n "(cached) " >&6
3078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3089 rm -f conftest.o conftest.obj
3090 if { { ac_try
="$ac_compile"
3092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_compile") 2>&5
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; then :
3101 for ac_file in conftest.o conftest.obj conftest.*; do
3102 test -f "$ac_file" || continue;
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3110 $as_echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3116 See \
`config.log' for more details" "$LINENO" 5; }
3118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3121 $as_echo "$ac_cv_objext" >&6; }
3122 OBJEXT=$ac_cv_objext
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3125 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3126 if ${ac_cv_c_compiler_gnu+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3143 if ac_fn_c_try_compile "$LINENO"; then :
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3154 if test $ac_compiler_gnu = yes; then
3159 ac_test_CFLAGS=${CFLAGS+set}
3160 ac_save_CFLAGS=$CFLAGS
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3163 if ${ac_cv_prog_cc_g+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 ac_save_c_werror_flag=$ac_c_werror_flag
3167 ac_c_werror_flag=yes
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3181 if ac_fn_c_try_compile "$LINENO"; then :
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3212 if ac_fn_c_try_compile "$LINENO"; then :
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_c_werror_flag=$ac_save_c_werror_flag
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3223 $as_echo "$ac_cv_prog_cc_g" >&6; }
3224 if test "$ac_test_CFLAGS" = set; then
3225 CFLAGS=$ac_save_CFLAGS
3226 elif test $ac_cv_prog_cc_g = yes; then
3227 if test "$GCC" = yes; then
3233 if test "$GCC" = yes; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3240 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3241 if ${ac_cv_prog_cc_c89+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 ac_cv_prog_cc_c89=no
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3251 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3252 struct buf { int x; };
3253 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3254 static char *e (p, i)
3260 static char *f (char * (*g) (char **, int), char **p, ...)
3265 s = g (p, va_arg (v,int));
3270 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3271 function prototypes and stuff, but not '\xHH' hex character constants.
3272 These don't provoke an error unfortunately, instead are silently treated
3273 as 'x'. The following induces an error, until -std is added to get
3274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3275 array size at least. It's necessary to write '\x00'==0 to get something
3276 that's true only with -std. */
3277 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3279 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3280 inside strings and character constants. */
3282 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3284 int test (int i, double x);
3285 struct s1 {int (*f) (int a);};
3286 struct s2 {int (*f) (double a);};
3287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3301 CC="$ac_save_CC $ac_arg"
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303 ac_cv_prog_cc_c89=$ac_arg
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3308 rm -f conftest.$ac_ext
3313 case "x$ac_cv_prog_cc_c89" in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3316 $as_echo "none needed" >&6; } ;;
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3319 $as_echo "unsupported" >&6; } ;;
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3323 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3325 if test "x$ac_cv_prog_cc_c89" != xno; then :
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 if test "$GCC" = yes ; then
3342 # -Werror forces warnings to be errors.
3344 ac_lbl_cc_force_warning_errors=-Werror
3347 # Try to have the compiler default to hiding symbols,
3348 # so that only symbols explicitly exported with
3349 # PCAP_API will be visible outside (shared) libraries.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3353 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3354 save_CFLAGS="$CFLAGS"
3355 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3357 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3358 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3360 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3361 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3363 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3365 CFLAGS="$CFLAGS -fvisibility=hidden"
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382 CFLAGS="$save_CFLAGS"
3383 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 CFLAGS="$save_CFLAGS"
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 V_INCLS="$V_INCLS -I/usr/local/include"
3396 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3402 # This is assumed either to be GCC or clang, both
3403 # of which use -Werror to force warnings to be errors.
3405 ac_lbl_cc_force_warning_errors=-Werror
3408 # Try to have the compiler default to hiding symbols,
3409 # so that only symbols explicitly exported with
3410 # PCAP_API will be visible outside (shared) libraries.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -fvisibility=hidden option" >&5
3414 $as_echo_n "checking whether the compiler supports the -fvisibility=hidden option... " >&6; }
3415 save_CFLAGS="$CFLAGS"
3416 if expr "x-fvisibility=hidden" : "x-W.*" >/dev/null
3418 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -fvisibility=hidden"
3419 elif expr "x-fvisibility=hidden" : "x-f.*" >/dev/null
3421 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3422 elif expr "x-fvisibility=hidden" : "x-m.*" >/dev/null
3424 CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
3426 CFLAGS="$CFLAGS -fvisibility=hidden"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 $as_echo "yes" >&6; }
3443 CFLAGS="$save_CFLAGS"
3444 V_CCOPT="$V_CCOPT -fvisibility=hidden"
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 CFLAGS="$save_CFLAGS"
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 # HP C, which is what we presume we're using, doesn't
3460 # exit with a non-zero exit status if we hand it an
3461 # invalid -W flag, can't be forced to do so even with
3462 # +We, and doesn't handle GCC-style -W flags, so we
3463 # don't want to try using GCC-style -W flags.
3465 ac_lbl_cc_dont_try_gcc_dashW=yes
3470 # MIPS C, which is what we presume we're using, doesn't
3471 # necessarily exit with a non-zero exit status if we
3472 # hand it an invalid -W flag, can't be forced to do
3473 # so, and doesn't handle GCC-style -W flags, so we
3474 # don't want to try using GCC-style -W flags.
3476 ac_lbl_cc_dont_try_gcc_dashW=yes
3478 # It also, apparently, defaults to "char" being
3479 # unsigned, unlike most other C implementations;
3480 # I suppose we could say "signed char" whenever
3481 # we want to guarantee a signed "char", but let's
3482 # just force signed chars.
3484 # -xansi is normally the default, but the
3485 # configure script was setting it; perhaps -cckr
3486 # was the default in the Old Days. (Then again,
3487 # that would probably be for backwards compatibility
3488 # in the days when ANSI C was Shiny and New, i.e.
3489 # 1989 and the early '90's, so maybe we can just
3490 # drop support for those compilers.)
3492 # -g is equivalent to -g2, which turns off
3493 # optimization; we choose -g3, which generates
3494 # debugging information but doesn't turn off
3495 # optimization (even if the optimization would
3496 # cause inaccuracies in debugging).
3498 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3503 # Presumed to be DEC OSF/1, Digital UNIX, or
3506 # The DEC C compiler, which is what we presume we're
3507 # using, doesn't exit with a non-zero exit status if we
3508 # hand it an invalid -W flag, can't be forced to do
3509 # so, and doesn't handle GCC-style -W flags, so we
3510 # don't want to try using GCC-style -W flags.
3512 ac_lbl_cc_dont_try_gcc_dashW=yes
3514 # -g is equivalent to -g2, which turns off
3515 # optimization; we choose -g3, which generates
3516 # debugging information but doesn't turn off
3517 # optimization (even if the optimization would
3518 # cause inaccuracies in debugging).
3520 V_CCOPT="$V_CCOPT -g3"
3525 # Assumed to be Sun C, which requires -errwarn to force
3526 # warnings to be treated as errors.
3528 ac_lbl_cc_force_warning_errors=-errwarn
3531 # Try to have the compiler default to hiding symbols,
3532 # so that only symbols explicitly exported with
3533 # PCAP_API will be visible outside (shared) libraries.
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -xldscope=hidden option" >&5
3537 $as_echo_n "checking whether the compiler supports the -xldscope=hidden option... " >&6; }
3538 save_CFLAGS="$CFLAGS"
3539 if expr "x-xldscope=hidden" : "x-W.*" >/dev/null
3541 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -xldscope=hidden"
3542 elif expr "x-xldscope=hidden" : "x-f.*" >/dev/null
3544 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3545 elif expr "x-xldscope=hidden" : "x-m.*" >/dev/null
3547 CFLAGS="$CFLAGS -Werror -xldscope=hidden"
3549 CFLAGS="$CFLAGS -xldscope=hidden"
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3566 CFLAGS="$save_CFLAGS"
3567 V_CCOPT="$V_CCOPT -xldscope=hidden"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 CFLAGS="$save_CFLAGS"
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3582 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3583 if ${ac_cv_lbl_cc_const_proto+:} false; then :
3584 $as_echo_n "(cached) " >&6
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <sys/types.h>
3592 struct a { int b; };
3593 void c(const struct a *)
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_lbl_cc_const_proto=yes
3601 ac_cv_lbl_cc_const_proto=no
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3607 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3608 if test $ac_cv_lbl_cc_const_proto = no ; then
3610 $as_echo "#define const /**/" >>confdefs.h
3615 V_CCOPT="$V_CCOPT -O"
3619 if test "$GCC" = yes ; then
3621 # On platforms where we build a shared library:
3623 # add options to generate position-independent code,
3624 # if necessary (it's the default in AIX and Darwin/OS X);
3626 # define option to set the soname of the shared library,
3627 # if the OS supports that;
3629 # add options to specify, at link time, a directory to
3630 # add to the run-time search path, if that's necessary.
3632 V_SHLIB_CMD="\$(CC)"
3633 V_SHLIB_OPT="-shared"
3639 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3641 # Platforms where the linker is the GNU linker
3642 # or accepts command-line arguments like
3643 # those the GNU linker accepts.
3645 # Some instruction sets require -fPIC on some
3646 # operating systems. Check for them. If you
3647 # have a combination that requires it, add it
3662 V_CCOPT="$V_CCOPT $PIC_OPT"
3663 V_SONAME_OPT="-Wl,-soname,"
3664 V_RPATH_OPT="-Wl,-rpath,"
3668 V_CCOPT="$V_CCOPT -fpic"
3670 # XXX - this assumes GCC is using the HP linker,
3671 # rather than the GNU linker, and that the "+h"
3672 # option is used on all HP-UX platforms, both .sl
3675 V_SONAME_OPT="-Wl,+h,"
3677 # By default, directories specifed with -L
3678 # are added to the run-time search path, so
3679 # we don't add them in pcap-config.
3684 V_CCOPT="$V_CCOPT -fpic"
3686 # XXX - this assumes GCC is using the Sun linker,
3687 # rather than the GNU linker.
3689 V_SONAME_OPT="-Wl,-h,"
3690 V_RPATH_OPT="-Wl,-R,"
3695 # Set the appropriate compiler flags and, on platforms
3696 # where we build a shared library:
3698 # add options to generate position-independent code,
3699 # if necessary (it's the default in Darwin/OS X);
3701 # if we generate ".so" shared libraries, define the
3702 # appropriate options for building the shared library;
3704 # add options to specify, at link time, a directory to
3705 # add to the run-time search path, if that's necessary.
3707 # Note: spaces after V_SONAME_OPT are significant; on
3708 # some platforms the soname is passed with a GCC-like
3709 # "-Wl,-soname,{soname}" option, with the soname part
3710 # of the option, while on other platforms the C compiler
3711 # driver takes it as a regular option with the soname
3712 # following the option. The same applies to V_RPATH_OPT.
3717 V_SHLIB_CMD="\$(CC)"
3718 V_SHLIB_OPT="-G -bnoentry -bexpall"
3721 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3725 V_CCOPT="$V_CCOPT -fpic"
3726 V_SHLIB_CMD="\$(CC)"
3727 V_SHLIB_OPT="-shared"
3728 V_SONAME_OPT="-Wl,-soname,"
3729 V_RPATH_OPT="-Wl,-rpath,"
3733 V_CCOPT="$V_CCOPT +z"
3734 V_SHLIB_CMD="\$(LD)"
3738 # By default, directories specifed with -L
3739 # are added to the run-time search path, so
3740 # we don't add them in pcap-config.
3746 # Presumed to be DEC OSF/1, Digital UNIX, or
3749 V_SHLIB_CMD="\$(CC)"
3750 V_SHLIB_OPT="-shared"
3751 V_SONAME_OPT="-soname "
3752 V_RPATH_OPT="-rpath "
3756 V_CCOPT="$V_CCOPT -Kpic"
3757 V_SHLIB_CMD="\$(CC)"
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3766 $as_echo_n "checking for inline... " >&6; }
3767 save_CFLAGS="$CFLAGS"
3769 if ${ac_cv_lbl_inline+:} false; then :
3770 $as_echo_n "(cached) " >&6
3775 for ac_lbl_inline in inline __inline__ __inline
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779 #define inline $ac_lbl_inline
3780 static inline struct iltest *foo(void);
3786 static inline struct iltest *
3789 static struct iltest xxx;
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_lbl_cc_inline=yes
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 if test "$ac_lbl_cc_inline" = yes ; then
3809 if test "$ac_lbl_cc_inline" = yes ; then
3810 ac_cv_lbl_inline=$ac_lbl_inline
3814 CFLAGS="$save_CFLAGS"
3815 if test ! -z "$ac_cv_lbl_inline" ; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3817 $as_echo "$ac_cv_lbl_inline" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 cat >>confdefs.h <<_ACEOF
3824 #define inline $ac_cv_lbl_inline
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3829 $as_echo_n "checking for __attribute__... " >&6; }
3830 if ${ac_cv___attribute__+:} false; then :
3831 $as_echo_n "(cached) " >&6
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3840 static void foo(void) __attribute__ ((noreturn));
3849 main(int argc, char **argv)
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv___attribute__=yes
3858 ac_cv___attribute__=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 if test "$ac_cv___attribute__" = "yes"; then
3865 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3869 # We can't use __attribute__, so we can't use __attribute__((unused)),
3870 # so we define _U_ to an empty string.
3872 V_DEFS="$V_DEFS -D_U_=\"\""
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3875 $as_echo "$ac_cv___attribute__" >&6; }
3877 if test "$ac_cv___attribute__" = "yes"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) can be used without warnings" >&5
3880 $as_echo_n "checking whether __attribute__((unused)) can be used without warnings... " >&6; }
3881 if ${ac_cv___attribute___unused+:} false; then :
3882 $as_echo_n "(cached) " >&6
3885 save_CFLAGS="$CFLAGS"
3886 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3895 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3897 printf("Hello, world!\n");
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv___attribute___unused=yes
3905 ac_cv___attribute___unused=no
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 CFLAGS="$save_CFLAGS"
3911 if test "$ac_cv___attribute___unused" = "yes"; then
3912 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3914 V_DEFS="$V_DEFS -D_U_=\"\""
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute___unused" >&5
3917 $as_echo "$ac_cv___attribute___unused" >&6; }
3922 # Try to arrange for large file support.
3924 # Check whether --enable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then :
3926 enableval=$enable_largefile;
3929 if test "$enable_largefile" != no; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3932 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3933 if ${ac_cv_sys_largefile_CC+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 ac_cv_sys_largefile_CC=no
3937 if test "$GCC" != yes; then
3940 # IRIX 6.2 and later do not support large files by default,
3941 # so use the C compiler's -n32 option if that helps.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #include <sys/types.h>
3945 /* Check that off_t can represent 2**63 - 1 correctly.
3946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947 since some C++ compilers masquerading as C compilers
3948 incorrectly reject 9223372036854775807. */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951 && LARGE_OFF_T % 2147483647 == 1)
3961 if ac_fn_c_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_sys_largefile_CC=' -n32'; break
3969 rm -f core conftest.err conftest.$ac_objext
3973 rm -f conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3977 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3978 if test "$ac_cv_sys_largefile_CC" != no; then
3979 CC=$CC$ac_cv_sys_largefile_CC
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3983 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3984 if ${ac_cv_sys_file_offset_bits+:} false; then :
3985 $as_echo_n "(cached) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <sys/types.h>
3991 /* Check that off_t can represent 2**63 - 1 correctly.
3992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3993 since some C++ compilers masquerading as C compilers
3994 incorrectly reject 9223372036854775807. */
3995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3997 && LARGE_OFF_T % 2147483647 == 1)
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_sys_file_offset_bits=no; break
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013 #define _FILE_OFFSET_BITS 64
4014 #include <sys/types.h>
4015 /* Check that off_t can represent 2**63 - 1 correctly.
4016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4017 since some C++ compilers masquerading as C compilers
4018 incorrectly reject 9223372036854775807. */
4019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4021 && LARGE_OFF_T % 2147483647 == 1)
4031 if ac_fn_c_try_compile "$LINENO"; then :
4032 ac_cv_sys_file_offset_bits=64; break
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_cv_sys_file_offset_bits=unknown
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4040 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4041 case $ac_cv_sys_file_offset_bits in #(
4044 cat >>confdefs.h <<_ACEOF
4045 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4050 if test $ac_cv_sys_file_offset_bits = unknown; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4052 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4053 if ${ac_cv_sys_large_files+:} false; then :
4054 $as_echo_n "(cached) " >&6
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <sys/types.h>
4060 /* Check that off_t can represent 2**63 - 1 correctly.
4061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4062 since some C++ compilers masquerading as C compilers
4063 incorrectly reject 9223372036854775807. */
4064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4066 && LARGE_OFF_T % 2147483647 == 1)
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_sys_large_files=no; break
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #define _LARGE_FILES 1
4083 #include <sys/types.h>
4084 /* Check that off_t can represent 2**63 - 1 correctly.
4085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4086 since some C++ compilers masquerading as C compilers
4087 incorrectly reject 9223372036854775807. */
4088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4090 && LARGE_OFF_T % 2147483647 == 1)
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_sys_large_files=1; break
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_sys_large_files=unknown
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4109 $as_echo "$ac_cv_sys_large_files" >&6; }
4110 case $ac_cv_sys_large_files in #(
4113 cat >>confdefs.h <<_ACEOF
4114 #define _LARGE_FILES $ac_cv_sys_large_files
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4125 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4126 if ${ac_cv_sys_largefile_source+:} false; then :
4127 $as_echo_n "(cached) " >&6
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <sys/types.h> /* for off_t */
4137 int (*fp) (FILE *, off_t, int) = fseeko;
4138 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4143 if ac_fn_c_try_link "$LINENO"; then :
4144 ac_cv_sys_largefile_source=no; break
4146 rm -f core conftest.err conftest.$ac_objext \
4147 conftest$ac_exeext conftest.$ac_ext
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #define _LARGEFILE_SOURCE 1
4151 #include <sys/types.h> /* for off_t */
4156 int (*fp) (FILE *, off_t, int) = fseeko;
4157 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4162 if ac_fn_c_try_link "$LINENO"; then :
4163 ac_cv_sys_largefile_source=1; break
4165 rm -f core conftest.err conftest.$ac_objext \
4166 conftest$ac_exeext conftest.$ac_ext
4167 ac_cv_sys_largefile_source=unknown
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4172 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4173 case $ac_cv_sys_largefile_source in #(
4176 cat >>confdefs.h <<_ACEOF
4177 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4183 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4184 # in glibc 2.1.3, but that breaks too many other things.
4185 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4186 if test $ac_cv_sys_largefile_source != unknown; then
4188 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4204 if test -z "$CPP"; then
4205 if ${ac_cv_prog_CPP+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.i conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.i conftest.err conftest.
$ac_ext
4256 if $ac_preproc_ok; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4271 for ac_c_preproc_warn_flag
in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if ac_fn_c_try_cpp
"$LINENO"; then :
4291 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.i conftest.
$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4303 # Broken: success on invalid input.
4306 # Passes both tests.
4310 rm -f conftest.err conftest.i conftest.
$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.i conftest.err conftest.
$ac_ext
4315 if $ac_preproc_ok; then :
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details" "$LINENO" 5; }
4325 ac_cpp
='$CPP $CPPFLAGS'
4326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if ${ac_cv_path_GREP+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found
=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_prog
in grep ggrep
; do
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4347 as_fn_executable_p
"$ac_path_GREP" ||
continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4352 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4355 $as_echo_n 0123456789 >"conftest.in"
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4364 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP
="$ac_path_GREP"
4368 ac_path_GREP_max
=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4376 $ac_path_GREP_found && break 3
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 ac_cv_path_GREP
=$GREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP
="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if ${ac_cv_path_EGREP+:} false
; then :
4397 $as_echo_n "(cached) " >&6
4399 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4400 then ac_cv_path_EGREP
="$GREP -E"
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found
=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_prog
in egrep; do
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4413 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4418 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4421 $as_echo_n 0123456789 >"conftest.in"
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4429 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4430 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP
="$ac_path_EGREP"
4434 ac_path_EGREP_max
=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4439 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4442 $ac_path_EGREP_found && break 3
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 ac_cv_path_EGREP
=$EGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP
="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if ${ac_cv_header_stdc+:} false
; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4481 if ac_fn_c_try_compile
"$LINENO"; then :
4482 ac_cv_header_stdc
=yes
4484 ac_cv_header_stdc
=no
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev
/null
2>&1; then :
4499 ac_cv_header_stdc
=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev
/null
2>&1; then :
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4554 if ac_fn_c_try_run
"$LINENO"; then :
4557 ac_cv_header_stdc
=no
4559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4581 cat >>confdefs.h
<<_ACEOF
4582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h
4592 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4594 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4595 cat >>confdefs.h
<<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603 for ac_header
in netpacket
/packet.h
4605 ac_fn_c_check_header_mongrel
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_netpacket_packet_h" = xyes
; then :
4607 cat >>confdefs.h
<<_ACEOF
4608 #define HAVE_NETPACKET_PACKET_H 1
4615 for ac_header
in net
/pfvar.h
4617 ac_fn_c_check_header_compile
"$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4618 #include <sys/socket.h>
4621 if test "x$ac_cv_header_net_pfvar_h" = xyes
; then :
4622 cat >>confdefs.h
<<_ACEOF
4623 #define HAVE_NET_PFVAR_H 1
4630 if test "$ac_cv_header_net_pfvar_h" = yes; then
4632 # Check for various PF actions.
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4635 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 #include <sys/socket.h>
4641 #include <net/pfvar.h>
4645 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4650 if ac_fn_c_try_compile
"$LINENO"; then :
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653 $as_echo "yes" >&6; }
4655 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 for ac_header
in netinet
/if_ether.h
4666 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4667 #include <sys/socket.h>
4669 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4670 cat >>confdefs.h
<<_ACEOF
4671 #define HAVE_NETINET_IF_ETHER_H 1
4678 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4680 # The simple test didn't work.
4681 # Do we need to include <net/if.h> first?
4682 # Unset ac_cv_header_netinet_if_ether_h so we don't
4683 # treat the previous failure as a cached value and
4684 # suppress the next test.
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4687 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4688 unset ac_cv_header_netinet_if_ether_h
4689 for ac_header
in netinet
/if_ether.h
4691 ac_fn_c_check_header_compile
"$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4692 #include <sys/socket.h>
4693 #include <netinet/in.h>
4698 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
; then :
4699 cat >>confdefs.h
<<_ACEOF
4700 #define HAVE_NETINET_IF_ETHER_H 1
4711 for ac_header
in linux
/sockios.h linux
/if_bonding.h
4713 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
4715 #include <sys/socket.h>
4716 #include <linux/if.h>
4719 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4720 cat >>confdefs.h
<<_ACEOF
4721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4731 if test "$GCC" = yes ; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4733 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4734 if ${ac_cv_lbl_gcc_fixincludes+:} false
; then :
4735 $as_echo_n "(cached) " >&6
4737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4740 * This generates a "duplicate case value" when fixincludes
4743 # include <sys/types.h>
4744 # include <sys/time.h>
4745 # include <sys/ioctl.h>
4746 # ifdef HAVE_SYS_IOCCOM_H
4747 # include <sys/ioccom.h>
4760 if ac_fn_c_try_compile
"$LINENO"; then :
4761 ac_cv_lbl_gcc_fixincludes
=yes
4763 ac_cv_lbl_gcc_fixincludes
=no
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4769 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4770 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4771 # Don't cache failure
4772 unset ac_cv_lbl_gcc_fixincludes
4773 as_fn_error $?
"see the INSTALL for more info" "$LINENO" 5
4777 for ac_func
in strerror strlcpy strlcat
4779 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4780 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4781 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4782 cat >>confdefs.h
<<_ACEOF
4783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4791 for ac_func
in vsnprintf snprintf
4793 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4794 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4795 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4796 cat >>confdefs.h
<<_ACEOF
4797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4805 if test $needsnprintf = yes; then
4806 case " $LIBOBJS " in
4807 *" snprintf.$ac_objext "* ) ;;
4808 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4815 for ac_func
in strtok_r
4817 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4818 if test "x$ac_cv_func_strtok_r" = xyes
; then :
4819 cat >>confdefs.h
<<_ACEOF
4820 #define HAVE_STRTOK_R 1
4828 if test $needstrtok_r = yes; then
4829 case " $LIBOBJS " in
4830 *" strtok_r.$ac_objext "* ) ;;
4831 *) LIBOBJS
="$LIBOBJS strtok_r.$ac_objext"
4838 # Do this before checking for ether_hostton(), as it's a
4839 # "gethostbyname() -ish function".
4842 # Most operating systems have gethostbyname() in the default searched
4843 # libraries (i.e. libc):
4844 # Some OSes (eg. Solaris) place it in libnsl
4845 # Some strange OSes (SINIX) have it in libsocket:
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4847 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4848 if ${ac_cv_search_gethostbyname+:} false
; then :
4849 $as_echo_n "(cached) " >&6
4851 ac_func_search_save_LIBS
=$LIBS
4852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4855 /* Override any GCC internal prototype to avoid an error.
4856 Use char because int might match the return type of a GCC
4857 builtin and then its argument prototype would still apply. */
4861 char gethostbyname ();
4865 return gethostbyname ();
4870 for ac_lib
in '' nsl socket resolv
; do
4871 if test -z "$ac_lib"; then
4872 ac_res
="none required"
4875 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4877 if ac_fn_c_try_link
"$LINENO"; then :
4878 ac_cv_search_gethostbyname
=$ac_res
4880 rm -f core conftest.err conftest.
$ac_objext \
4882 if ${ac_cv_search_gethostbyname+:} false
; then :
4886 if ${ac_cv_search_gethostbyname+:} false
; then :
4889 ac_cv_search_gethostbyname
=no
4892 LIBS
=$ac_func_search_save_LIBS
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4895 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4896 ac_res
=$ac_cv_search_gethostbyname
4897 if test "$ac_res" != no
; then :
4898 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4902 # Unfortunately libsocket sometimes depends on libnsl and
4903 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4904 if test "$ac_cv_search_gethostbyname" = "no"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4907 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4908 if ${ac_cv_lib_socket_gethostbyname+:} false
; then :
4909 $as_echo_n "(cached) " >&6
4911 ac_check_lib_save_LIBS
=$LIBS
4912 LIBS
="-lsocket -lnsl $LIBS"
4913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4916 /* Override any GCC internal prototype to avoid an error.
4917 Use char because int might match the return type of a GCC
4918 builtin and then its argument prototype would still apply. */
4922 char gethostbyname ();
4926 return gethostbyname ();
4931 if ac_fn_c_try_link
"$LINENO"; then :
4932 ac_cv_lib_socket_gethostbyname
=yes
4934 ac_cv_lib_socket_gethostbyname
=no
4936 rm -f core conftest.err conftest.
$ac_objext \
4937 conftest
$ac_exeext conftest.
$ac_ext
4938 LIBS
=$ac_check_lib_save_LIBS
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4941 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4942 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
; then :
4943 LIBS
="-lsocket -lnsl $LIBS"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4948 $as_echo_n "checking for library containing socket... " >&6; }
4949 if ${ac_cv_search_socket+:} false
; then :
4950 $as_echo_n "(cached) " >&6
4952 ac_func_search_save_LIBS
=$LIBS
4953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4956 /* Override any GCC internal prototype to avoid an error.
4957 Use char because int might match the return type of a GCC
4958 builtin and then its argument prototype would still apply. */
4971 for ac_lib
in '' socket
; do
4972 if test -z "$ac_lib"; then
4973 ac_res
="none required"
4976 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4978 if ac_fn_c_try_link
"$LINENO"; then :
4979 ac_cv_search_socket
=$ac_res
4981 rm -f core conftest.err conftest.
$ac_objext \
4983 if ${ac_cv_search_socket+:} false
; then :
4987 if ${ac_cv_search_socket+:} false
; then :
4990 ac_cv_search_socket
=no
4993 LIBS
=$ac_func_search_save_LIBS
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4996 $as_echo "$ac_cv_search_socket" >&6; }
4997 ac_res
=$ac_cv_search_socket
4998 if test "$ac_res" != no
; then :
4999 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5003 $as_echo_n "checking for socket in -lsocket... " >&6; }
5004 if ${ac_cv_lib_socket_socket+:} false
; then :
5005 $as_echo_n "(cached) " >&6
5007 ac_check_lib_save_LIBS
=$LIBS
5008 LIBS
="-lsocket -lnsl $LIBS"
5009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5027 if ac_fn_c_try_link
"$LINENO"; then :
5028 ac_cv_lib_socket_socket
=yes
5030 ac_cv_lib_socket_socket
=no
5032 rm -f core conftest.err conftest.
$ac_objext \
5033 conftest
$ac_exeext conftest.
$ac_ext
5034 LIBS
=$ac_check_lib_save_LIBS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5037 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5038 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
5039 LIBS
="-lsocket -lnsl $LIBS"
5044 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
5046 $as_echo_n "checking for library containing putmsg... " >&6; }
5047 if ${ac_cv_search_putmsg+:} false
; then :
5048 $as_echo_n "(cached) " >&6
5050 ac_func_search_save_LIBS
=$LIBS
5051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5054 /* Override any GCC internal prototype to avoid an error.
5055 Use char because int might match the return type of a GCC
5056 builtin and then its argument prototype would still apply. */
5069 for ac_lib
in '' str
; do
5070 if test -z "$ac_lib"; then
5071 ac_res
="none required"
5074 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5076 if ac_fn_c_try_link
"$LINENO"; then :
5077 ac_cv_search_putmsg
=$ac_res
5079 rm -f core conftest.err conftest.
$ac_objext \
5081 if ${ac_cv_search_putmsg+:} false
; then :
5085 if ${ac_cv_search_putmsg+:} false
; then :
5088 ac_cv_search_putmsg
=no
5091 LIBS
=$ac_func_search_save_LIBS
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
5094 $as_echo "$ac_cv_search_putmsg" >&6; }
5095 ac_res
=$ac_cv_search_putmsg
5096 if test "$ac_res" != no
; then :
5097 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5104 # You are in a twisty little maze of UN*Xes, all different.
5105 # Some might not have ether_hostton().
5106 # Some might have it, but not declare it in any header file.
5107 # Some might have it, but declare it in <netinet/if_ether.h>.
5108 # Some might have it, but declare it in <netinet/ether.h>
5109 # (And some might have it but document it as something declared in
5110 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5112 # Before you is a C compiler.
5114 for ac_func
in ether_hostton
5116 ac_fn_c_check_func
"$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5117 if test "x$ac_cv_func_ether_hostton" = xyes
; then :
5118 cat >>confdefs.h
<<_ACEOF
5119 #define HAVE_ETHER_HOSTTON 1
5125 if test "$ac_cv_func_ether_hostton" = yes; then
5127 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5129 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5131 # Yes. Does it declare ether_hostton()?
5133 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5134 #include <sys/types.h>
5135 #include <sys/socket.h>
5136 #include <netinet/in.h>
5137 #include <arpa/inet.h>
5141 #include <netinet/if_ether.h>
5144 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5147 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5156 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5158 # No, how about <netinet/ether.h>, as on Linux?
5160 for ac_header
in netinet
/ether.h
5162 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5163 if test "x$ac_cv_header_netinet_ether_h" = xyes
; then :
5164 cat >>confdefs.h
<<_ACEOF
5165 #define HAVE_NETINET_ETHER_H 1
5172 if test "$ac_cv_header_netinet_ether_h" = yes; then
5174 # We have it - does it declare ether_hostton()?
5175 # Unset ac_cv_have_decl_ether_hostton so we don't
5176 # treat the previous failure as a cached value and
5177 # suppress the next test.
5179 unset ac_cv_have_decl_ether_hostton
5180 ac_fn_c_check_decl
"$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5181 #include <netinet/ether.h>
5184 if test "x$ac_cv_have_decl_ether_hostton" = xyes
; then :
5187 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5195 # Is ether_hostton() declared?
5197 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5199 # No, we'll have to declare it ourselves.
5200 # Do we have "struct ether_addr"?
5202 ac_fn_c_check_type
"$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5203 #include <sys/types.h>
5204 #include <sys/socket.h>
5205 #include <netinet/in.h>
5206 #include <arpa/inet.h>
5210 #include <netinet/if_ether.h>
5213 if test "x$ac_cv_type_struct_ether_addr" = xyes
; then :
5215 cat >>confdefs.h
<<_ACEOF
5216 #define HAVE_STRUCT_ETHER_ADDR 1
5223 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5227 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5233 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5234 # Check whether --enable-protochain was given.
5235 if test "${enable_protochain+set}" = set; then :
5236 enableval
=$enable_protochain;
5239 case "x$enable_protochain" in
5240 xyes
) enable_protochain
=enabled
;;
5241 xno
) enable_protochain
=disabled
;;
5242 x
) enable_protochain
=enabled
;;
5245 if test "$enable_protochain" = "disabled"; then
5247 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5251 $as_echo "${enable_protochain}" >&6; }
5254 # valgrindtest directly uses the native capture mechanism, but
5255 # only tests with BPF and PF_PACKET sockets; only enable it if
5256 # we have BPF or PF_PACKET sockets.
5261 # SITA support is mutually exclusive with native capture support;
5262 # "--with-sita" selects SITA support.
5265 # Check whether --with-sita was given.
5266 if test "${with_sita+set}" = set; then :
5268 if test ! "x$withval" = "xno" ; then
5270 $as_echo "#define SITA 1" >>confdefs.h
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5273 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5279 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5280 as_fn_error $?
"pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5283 # Check whether --with-pcap was given.
5284 if test "${with_pcap+set}" = set; then :
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5289 $as_echo_n "checking packet capture type... " >&6; }
5290 if test ! -z "$with_pcap" ; then
5292 elif test -r /dev
/bpf
-o -h /dev
/bpf
; then
5294 # Cloning BPF device.
5298 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5302 # We have BPF, so build valgrindtest with "make test".
5304 VALGRINDTEST
=valgrindtest
5305 elif test -r /dev
/bpf0
; then
5309 # We have BPF, so build valgrindtest with "make test".
5311 VALGRINDTEST
=valgrindtest
5312 elif test -r /usr
/include
/net
/pfilt.h
; then
5314 elif test -r /dev
/enet
; then
5316 elif test -r /dev
/nit
; then
5318 elif test -r /usr
/include
/sys
/net
/nit.h
; then
5320 elif test -r /usr
/include
/linux
/socket.h
; then
5324 # XXX - this won't work with older kernels that have SOCK_PACKET
5325 # sockets but not PF_PACKET sockets.
5327 VALGRINDTEST
=valgrindtest
5328 elif test -r /usr
/include
/net
/raw.h
; then
5330 elif test -r /usr
/include
/odmi.h
; then
5332 # On AIX, the BPF devices might not yet be present - they're
5333 # created the first time libpcap runs after booting.
5334 # We check for odmi.h instead.
5337 elif test -c /dev
/bpf0
; then # check again in case not readable
5341 # We have BPF, so build valgrindtest with "make test".
5343 VALGRINDTEST
=valgrindtest
5344 elif test -r /usr
/include
/sys
/dlpi.h
; then
5346 elif test -c /dev
/enet
; then # check again in case not readable
5348 elif test -c /dev
/nit
; then # check again in case not readable
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5354 $as_echo "$V_PCAP" >&6; }
5358 # Do capture-mechanism-dependent tests.
5363 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5368 # Checks for some header files.
5370 for ac_header
in sys
/bufmod.h sys
/dlpi_ext.h
5372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5374 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5375 cat >>confdefs.h
<<_ACEOF
5376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5386 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5387 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5388 # private version also existed, which did not have the same APIs.
5389 # Due to a gcc bug, the default search path for 32-bit libraries does
5390 # not include /lib, we add it explicitly here.
5391 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5392 # Also, due to the bug above applications that link to libpcap with
5393 # libdlpi will have to add "-L/lib" option to "configure".
5395 saved_ldflags
=$LDFLAGS
5396 LDFLAGS
="$LIBS -L/lib"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5398 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5399 if ${ac_cv_lib_dlpi_dlpi_walk+:} false
; then :
5400 $as_echo_n "(cached) " >&6
5402 ac_check_lib_save_LIBS
=$LIBS
5404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5407 /* Override any GCC internal prototype to avoid an error.
5408 Use char because int might match the return type of a GCC
5409 builtin and then its argument prototype would still apply. */
5417 return dlpi_walk ();
5422 if ac_fn_c_try_link
"$LINENO"; then :
5423 ac_cv_lib_dlpi_dlpi_walk
=yes
5425 ac_cv_lib_dlpi_dlpi_walk
=no
5427 rm -f core conftest.err conftest.
$ac_objext \
5428 conftest
$ac_exeext conftest.
$ac_ext
5429 LIBS
=$ac_check_lib_save_LIBS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5432 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5433 if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes
; then :
5438 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5445 LDFLAGS
=$saved_ldflags
5448 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5452 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5453 if ${ac_cv_sys_dlpi_usable+:} false
; then :
5454 $as_echo_n "(cached) " >&6
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 #include <sys/time.h>
5461 #include <sys/dlpi.h>
5466 int i = DL_PROMISC_PHYS;
5471 if ac_fn_c_try_compile
"$LINENO"; then :
5472 ac_cv_sys_dlpi_usable
=yes
5474 ac_cv_sys_dlpi_usable
=no
5476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5480 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5481 if test $ac_cv_sys_dlpi_usable = no
; then
5482 as_fn_error $?
"<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5486 # Check whether we have a /dev/dlpi device or have multiple devices.
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5489 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5490 if test -c /dev
/dlpi
; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5494 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5501 $as_echo_n "checking for $dir directory... " >&6; }
5502 if test -d $dir ; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5506 cat >>confdefs.h
<<_ACEOF
5507 #define PCAP_DEV_PREFIX "$dir"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5517 # This check is for Solaris with DLPI support for passive modes.
5518 # See dlpi(7P) for more details.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5521 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5522 if ${ac_cv_lbl_has_dl_passive_req_t+:} false
; then :
5523 $as_echo_n "(cached) " >&6
5525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5528 # include <sys/types.h>
5529 # include <sys/dlpi.h>
5533 u_int i = sizeof(dl_passive_req_t)
5538 if ac_fn_c_try_compile
"$LINENO"; then :
5539 ac_cv_lbl_has_dl_passive_req_t
=yes
5541 ac_cv_lbl_has_dl_passive_req_t
=no
5543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5547 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5548 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5550 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5557 # Do we have the wireless extensions?
5559 for ac_header
in linux
/wireless.h
5561 ac_fn_c_check_header_compile
"$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5562 #include <sys/socket.h>
5563 #include <linux/if.h>
5564 #include <linux/types.h>
5567 if test "x$ac_cv_header_linux_wireless_h" = xyes
; then :
5568 cat >>confdefs.h
<<_ACEOF
5569 #define HAVE_LINUX_WIRELESS_H 1
5581 # Check whether --with-libnl was given.
5582 if test "${with_libnl+set}" = set; then :
5583 withval
=$with_libnl; with_libnl
=$withval
5587 if test x
$with_libnl != xno
; then
5590 incdir
=-I/usr
/include
/libnl3
5592 if test x
$withval != x
; then
5593 libnldir
=-L${withval}/lib
/.libs
5594 incdir
=-I${withval}/include
5598 # Try libnl 3.x first.
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl-3" >&5
5601 $as_echo_n "checking for nl_socket_alloc in -lnl-3... " >&6; }
5602 if ${ac_cv_lib_nl_3_nl_socket_alloc+:} false
; then :
5603 $as_echo_n "(cached) " >&6
5605 ac_check_lib_save_LIBS
=$LIBS
5606 LIBS
="-lnl-3 ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5610 /* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5616 char nl_socket_alloc ();
5620 return nl_socket_alloc ();
5625 if ac_fn_c_try_link
"$LINENO"; then :
5626 ac_cv_lib_nl_3_nl_socket_alloc
=yes
5628 ac_cv_lib_nl_3_nl_socket_alloc
=no
5630 rm -f core conftest.err conftest.
$ac_objext \
5631 conftest
$ac_exeext conftest.
$ac_ext
5632 LIBS
=$ac_check_lib_save_LIBS
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
5635 $as_echo "$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
5636 if test "x$ac_cv_lib_nl_3_nl_socket_alloc" = xyes
; then :
5639 # Yes, we have libnl 3.x.
5641 LIBS
="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
5643 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5646 $as_echo "#define HAVE_LIBNL_3_x 1" >>confdefs.h
5649 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5652 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5654 V_INCLS
="$V_INCLS ${incdir}"
5660 if test x
$have_any_nl = xno
; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5665 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5666 if ${ac_cv_lib_nl_nl_socket_alloc+:} false
; then :
5667 $as_echo_n "(cached) " >&6
5669 ac_check_lib_save_LIBS
=$LIBS
5671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5674 /* Override any GCC internal prototype to avoid an error.
5675 Use char because int might match the return type of a GCC
5676 builtin and then its argument prototype would still apply. */
5680 char nl_socket_alloc ();
5684 return nl_socket_alloc ();
5689 if ac_fn_c_try_link
"$LINENO"; then :
5690 ac_cv_lib_nl_nl_socket_alloc
=yes
5692 ac_cv_lib_nl_nl_socket_alloc
=no
5694 rm -f core conftest.err conftest.
$ac_objext \
5695 conftest
$ac_exeext conftest.
$ac_ext
5696 LIBS
=$ac_check_lib_save_LIBS
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5699 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5700 if test "x$ac_cv_lib_nl_nl_socket_alloc" = xyes
; then :
5703 # Yes, we have libnl 2.x.
5705 LIBS
="${libnldir} -lnl-genl -lnl $LIBS"
5707 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5710 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5713 $as_echo "#define HAVE_LIBNL_NLE 1" >>confdefs.h
5716 $as_echo "#define HAVE_LIBNL_SOCKETS 1" >>confdefs.h
5724 if test x
$have_any_nl = xno
; then
5726 # No, we don't; do we have libnl 1.x?
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5729 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5730 if ${ac_cv_lib_nl_nl_handle_alloc+:} false
; then :
5731 $as_echo_n "(cached) " >&6
5733 ac_check_lib_save_LIBS
=$LIBS
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 /* Override any GCC internal prototype to avoid an error.
5739 Use char because int might match the return type of a GCC
5740 builtin and then its argument prototype would still apply. */
5744 char nl_handle_alloc ();
5748 return nl_handle_alloc ();
5753 if ac_fn_c_try_link
"$LINENO"; then :
5754 ac_cv_lib_nl_nl_handle_alloc
=yes
5756 ac_cv_lib_nl_nl_handle_alloc
=no
5758 rm -f core conftest.err conftest.
$ac_objext \
5759 conftest
$ac_exeext conftest.
$ac_ext
5760 LIBS
=$ac_check_lib_save_LIBS
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5763 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5764 if test "x$ac_cv_lib_nl_nl_handle_alloc" = xyes
; then :
5769 LIBS
="${libnldir} -lnl $LIBS"
5771 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5779 if test x
$have_any_nl = xno
; then
5781 # No, we don't have libnl at all.
5783 if test x
$with_libnl = xyes
; then
5784 as_fn_error $?
"libnl support requested but libnl not found" "$LINENO" 5
5789 for ac_header
in linux
/ethtool.h
5791 ac_fn_c_check_header_compile
"$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5792 $ac_includes_default
5793 #include <linux/types.h>
5796 if test "x$ac_cv_header_linux_ethtool_h" = xyes
; then :
5797 cat >>confdefs.h
<<_ACEOF
5798 #define HAVE_LINUX_ETHTOOL_H 1
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5806 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5807 if ${ac_cv_lbl_tpacket_stats+:} false
; then :
5808 $as_echo_n "(cached) " >&6
5810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5813 # include <linux/if_packet.h>
5817 struct tpacket_stats stats
5822 if ac_fn_c_try_compile
"$LINENO"; then :
5823 ac_cv_lbl_tpacket_stats
=yes
5825 ac_cv_lbl_tpacket_stats
=no
5827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5831 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5832 if test $ac_cv_lbl_tpacket_stats = yes; then
5834 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5838 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5839 if ${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+:} false
; then :
5840 $as_echo_n "(cached) " >&6
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 # include <sys/types.h>
5846 # include <linux/if_packet.h>
5850 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
5855 if ac_fn_c_try_compile
"$LINENO"; then :
5856 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=yes
5858 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci
=no
5860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
5864 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
5865 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
5866 HAVE_LINUX_TPACKET_AUXDATA
=tp_vlan_tci
5869 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
5876 # Check whether we have the *BSD-style ioctls.
5878 for ac_header
in net
/if_media.h
5880 ac_fn_c_check_header_mongrel
"$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_net_if_media_h" = xyes
; then :
5882 cat >>confdefs.h
<<_ACEOF
5883 #define HAVE_NET_IF_MEDIA_H 1
5892 # Check whether we have struct BPF_TIMEVAL.
5894 ac_fn_c_check_type
"$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
5895 #include <sys/types.h>
5896 #include <sys/ioctl.h>
5897 #ifdef HAVE_SYS_IOCCOM_H
5898 #include <sys/ioccom.h>
5900 #include <net/bpf.h>
5903 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = xyes
; then :
5905 cat >>confdefs.h
<<_ACEOF
5906 #define HAVE_STRUCT_BPF_TIMEVAL 1
5916 # --with-pcap=dag is the only way to get here, and it means
5917 # "DAG support but nothing else"
5919 V_DEFS
="$V_DEFS -DDAG_ONLY"
5925 # --with-pcap=septel is the only way to get here, and it means
5926 # "Septel support but nothing else"
5928 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
5934 # --with-pcap=snf is the only way to get here, and it means
5935 # "SNF support but nothing else"
5937 V_DEFS
="$V_DEFS -DSNF_ONLY"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5943 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5945 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5949 as_fn_error $?
"$V_PCAP is not a valid pcap type" "$LINENO" 5
5953 if test "$V_PCAP" != null
5955 ac_fn_c_check_func
"$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5956 if test "x$ac_cv_func_getifaddrs" = xyes
; then :
5959 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5960 # as well, just in case some platform is really weird.
5962 ac_fn_c_check_header_mongrel
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5963 if test "x$ac_cv_header_ifaddrs_h" = xyes
; then :
5966 # We have the header, so we use "getifaddrs()" to
5967 # get the list of interfaces.
5969 V_FINDALLDEVS
=fad-getad.c
5974 # We don't have the header - give up.
5975 # XXX - we could also fall back on some other
5976 # mechanism, but, for now, this'll catch this
5977 # problem so that we can at least try to figure
5978 # out something to do on systems with "getifaddrs()"
5979 # but without "ifaddrs.h", if there is something
5980 # we can do on those systems.
5982 as_fn_error $?
"Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
5991 # Well, we don't have "getifaddrs()", so we have to use
5992 # some other mechanism; determine what that mechanism is.
5994 # The first thing we use is the type of capture mechanism,
5995 # which is somewhat of a proxy for the OS we're using.
6001 # This might be Solaris 8 or later, with
6002 # SIOCGLIFCONF, or it might be some other OS
6003 # or some older version of Solaris, with
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
6007 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
6008 if ${ac_cv_lbl_have_siocglifconf+:} false
; then :
6009 $as_echo_n "(cached) " >&6
6011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <sys/param.h>
6014 #include <sys/file.h>
6015 #include <sys/ioctl.h>
6016 #include <sys/socket.h>
6017 #include <sys/sockio.h>
6021 ioctl(0, SIOCGLIFCONF, (char *)0);
6026 if ac_fn_c_try_compile
"$LINENO"; then :
6027 ac_cv_lbl_have_siocglifconf
=yes
6029 ac_cv_lbl_have_siocglifconf
=no
6031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
6035 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
6036 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6037 V_FINDALLDEVS
=fad-glifc.c
6039 V_FINDALLDEVS
=fad-gifc.c
6045 # Assume we just have SIOCGIFCONF.
6046 # (XXX - on at least later Linux kernels, there's
6047 # another mechanism, and we should be using that
6050 V_FINDALLDEVS
=fad-gifc.c
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6061 $as_echo_n "checking for socklen_t... " >&6; }
6062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6065 #include <sys/types.h>
6066 #include <sys/socket.h>
6076 if ac_fn_c_try_compile
"$LINENO"; then :
6081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 if test "x$have_socklen_t" = "xyes"; then
6084 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
6088 $as_echo "$have_socklen_t" >&6; }
6090 # Check whether --enable-ipv6 was given.
6091 if test "${enable_ipv6+set}" = set; then :
6092 enableval
=$enable_ipv6;
6094 enable_ipv6
=ifavailable
6097 if test "$enable_ipv6" != "no"; then
6098 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6099 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
6102 $as_echo "#define INET6 1" >>confdefs.h
6107 if test "$enable_ipv6" != "ifavailable"; then
6108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6110 as_fn_error $?
"--enable-ipv6 was given, but getaddrinfo isn't available
6111 See \`config.log' for more details" "$LINENO" 5; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
6119 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
6120 # Check whether --enable-optimizer-dbg was given.
6121 if test "${enable_optimizer_dbg+set}" = set; then :
6122 enableval
=$enable_optimizer_dbg;
6125 if test "$enable_optimizer_dbg" = "yes"; then
6127 $as_echo "#define BDEBUG 1" >>confdefs.h
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
6131 $as_echo "${enable_optimizer_dbg-no}" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
6134 $as_echo_n "checking whether to build parser debugging code... " >&6; }
6135 # Check whether --enable-yydebug was given.
6136 if test "${enable_yydebug+set}" = set; then :
6137 enableval
=$enable_yydebug;
6140 if test "$enable_yydebug" = "yes"; then
6142 $as_echo "#define YYDEBUG 1" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
6146 $as_echo "${enable_yydebug-no}" >&6; }
6148 # Check for Endace DAG card support.
6150 # Check whether --with-dag was given.
6151 if test "${with_dag+set}" = set; then :
6153 if test "$withval" = no
6155 # User doesn't want DAG support.
6157 elif test "$withval" = yes
6159 # User wants DAG support but hasn't specified a directory.
6162 # User wants DAG support and has specified a directory, so use the provided value.
6169 if test "$V_PCAP" = dag
; then
6170 # User requested DAG-only libpcap, so we'd better have
6173 elif test "xxx_only" = yes; then
6174 # User requested something-else-only pcap, so they don't
6179 # Use DAG API if present, otherwise don't
6188 # Check whether --with-dag-includes was given.
6189 if test "${with_dag_includes+set}" = set; then :
6190 withval
=$with_dag_includes;
6191 # User wants DAG support and has specified a header directory, so use the provided value.
6193 dag_include_dir
=$withval
6199 # Check whether --with-dag-libraries was given.
6200 if test "${with_dag_libraries+set}" = set; then :
6201 withval
=$with_dag_libraries;
6202 # User wants DAG support and has specified a library directory, so use the provided value.
6204 dag_lib_dir
=$withval
6209 ac_cv_lbl_dag_api
=no
6210 if test "$want_dag" != no
; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6213 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6215 # If necessary, set default paths for DAG API headers and libraries.
6216 if test -z "$dag_root"; then
6220 if test -z "$dag_include_dir"; then
6221 dag_include_dir
="$dag_root/include"
6224 if test -z "$dag_lib_dir"; then
6225 dag_lib_dir
="$dag_root/lib"
6228 if test -z "$dag_tools_dir"; then
6229 dag_tools_dir
="$dag_root/tools"
6232 if test -r $dag_include_dir/dagapi.h
; then
6233 ac_cv_lbl_dag_api
=yes
6236 if test "$ac_cv_lbl_dag_api" = yes; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($dag_include_dir)" >&5
6238 $as_echo "yes ($dag_include_dir)" >&6; }
6240 V_INCLS
="$V_INCLS -I$dag_include_dir"
6242 if test $V_PCAP != dag
; then
6243 SSRC
="$SSRC pcap-dag.c"
6246 # See if we can find a general version string.
6247 # Don't need to save and restore LIBS to prevent -ldag being
6248 # included if there's a found-action (arg 3).
6249 saved_ldflags
=$LDFLAGS
6250 LDFLAGS
="-L$dag_lib_dir"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream64 in -ldag" >&5
6252 $as_echo_n "checking for dag_attach_stream64 in -ldag... " >&6; }
6253 if ${ac_cv_lib_dag_dag_attach_stream64+:} false
; then :
6254 $as_echo_n "(cached) " >&6
6256 ac_check_lib_save_LIBS
=$LIBS
6258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6267 char dag_attach_stream64 ();
6271 return dag_attach_stream64 ();
6276 if ac_fn_c_try_link
"$LINENO"; then :
6277 ac_cv_lib_dag_dag_attach_stream64
=yes
6279 ac_cv_lib_dag_dag_attach_stream64
=no
6281 rm -f core conftest.err conftest.
$ac_objext \
6282 conftest
$ac_exeext conftest.
$ac_ext
6283 LIBS
=$ac_check_lib_save_LIBS
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream64" >&5
6286 $as_echo "$ac_cv_lib_dag_dag_attach_stream64" >&6; }
6287 if test "x$ac_cv_lib_dag_dag_attach_stream64" = xyes
; then :
6288 dag_large_streams
="1"
6290 dag_large_streams
="0"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6294 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6295 if ${ac_cv_lib_dag_dag_get_erf_types+:} false
; then :
6296 $as_echo_n "(cached) " >&6
6298 ac_check_lib_save_LIBS
=$LIBS
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6303 /* Override any GCC internal prototype to avoid an error.
6304 Use char because int might match the return type of a GCC
6305 builtin and then its argument prototype would still apply. */
6309 char dag_get_erf_types ();
6313 return dag_get_erf_types ();
6318 if ac_fn_c_try_link
"$LINENO"; then :
6319 ac_cv_lib_dag_dag_get_erf_types
=yes
6321 ac_cv_lib_dag_dag_get_erf_types
=no
6323 rm -f core conftest.err conftest.
$ac_objext \
6324 conftest
$ac_exeext conftest.
$ac_ext
6325 LIBS
=$ac_check_lib_save_LIBS
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6328 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6329 if test "x$ac_cv_lib_dag_dag_get_erf_types" = xyes
; then :
6332 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6337 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6338 if ${ac_cv_lib_dag_dag_get_stream_erf_types+:} 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 dag_get_stream_erf_types ();
6356 return dag_get_stream_erf_types ();
6361 if ac_fn_c_try_link
"$LINENO"; then :
6362 ac_cv_lib_dag_dag_get_stream_erf_types
=yes
6364 ac_cv_lib_dag_dag_get_stream_erf_types
=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_dag_dag_get_stream_erf_types" >&5
6371 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6372 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = xyes
; then :
6375 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6380 LDFLAGS
=$saved_ldflags
6382 if test "$dag_large_streams" = 1; then
6384 $as_echo "#define HAVE_DAG_LARGE_STREAMS_API 1" >>confdefs.h
6387 LDFLAGS
="$LDFLAGS -L$dag_lib_dir"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6390 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6391 if ${ac_cv_lib_vdag_vdag_set_device_info+:} false
; then :
6392 $as_echo_n "(cached) " >&6
6394 ac_check_lib_save_LIBS
=$LIBS
6396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6399 /* Override any GCC internal prototype to avoid an error.
6400 Use char because int might match the return type of a GCC
6401 builtin and then its argument prototype would still apply. */
6405 char vdag_set_device_info ();
6409 return vdag_set_device_info ();
6414 if ac_fn_c_try_link
"$LINENO"; then :
6415 ac_cv_lib_vdag_vdag_set_device_info
=yes
6417 ac_cv_lib_vdag_vdag_set_device_info
=no
6419 rm -f core conftest.err conftest.
$ac_objext \
6420 conftest
$ac_exeext conftest.
$ac_ext
6421 LIBS
=$ac_check_lib_save_LIBS
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6424 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6425 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = xyes
; then :
6426 ac_dag_have_vdag
="1"
6428 ac_dag_have_vdag
="0"
6431 if test "$ac_dag_have_vdag" = 1; then
6433 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6435 LIBS
="$LIBS -lpthread"
6440 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6446 if test "$V_PCAP" = dag
; then
6447 # User requested "dag" capture type but we couldn't
6448 # find the DAG API support.
6449 as_fn_error $?
"DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6452 if test "$want_dag" = yes; then
6453 # User wanted DAG support but we couldn't find it.
6454 as_fn_error $?
"DAG support requested with --with-dag, but the DAG headers weren't found at $dag_include_dir: make sure the DAG support is installed, specify a different path or paths if necessary, or don't request DAG support" "$LINENO" 5
6460 # Check whether --with-septel was given.
6461 if test "${with_septel+set}" = set; then :
6462 withval
=$with_septel;
6463 if test "$withval" = no
6466 elif test "$withval" = yes
6472 septel_root
=$withval
6477 if test "$V_PCAP" = septel
; then
6478 # User requested Septel-only libpcap, so we'd better have
6481 elif test "xxx_only" = yes; then
6482 # User requested something-else-only pcap, so they don't
6483 # want Septel support.
6487 # Use Septel API if present, otherwise don't
6489 want_septel
=ifpresent
6495 ac_cv_lbl_septel_api
=no
6496 if test "$with_septel" != no
; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API headers" >&5
6499 $as_echo_n "checking whether we have Septel API headers... " >&6; }
6501 # If necessary, set default paths for Septel API headers and libraries.
6502 if test -z "$septel_root"; then
6503 septel_root
=$srcdir/..
/septel
6506 septel_tools_dir
="$septel_root"
6507 septel_include_dir
="$septel_root/INC"
6509 if test -r "$septel_include_dir/msg.h"; then
6510 ac_cv_lbl_septel_api
=yes
6513 if test "$ac_cv_lbl_septel_api" = yes; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($septel_include_dir)" >&5
6515 $as_echo "yes ($septel_include_dir)" >&6; }
6517 V_INCLS
="$V_INCLS -I$septel_include_dir"
6518 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"
6519 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"
6521 if test "$V_PCAP" != septel
; then
6522 SSRC
="$SSRC pcap-septel.c"
6526 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6532 if test "$V_PCAP" = septel
; then
6533 # User requested "septel" capture type but
6534 # we couldn't find the Septel API support.
6535 as_fn_error $?
"Septel support requested with --with-pcap=septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6538 if test "$want_septel" = yes; then
6539 # User wanted Septel support but we couldn't find it.
6540 as_fn_error $?
"Septel support requested with --with-septel, but the Septel headers weren't found at $septel_include_dir: make sure the Septel support is installed, specify a different path or paths if necessary, or don't request Septel support" "$LINENO" 5
6545 # Check for Myricom SNF support.
6547 # Check whether --with-snf was given.
6548 if test "${with_snf+set}" = set; then :
6550 if test "$withval" = no
6552 # User explicitly doesn't want SNF
6554 elif test "$withval" = yes
6556 # User wants SNF support but hasn't specified a directory.
6559 # User wants SNF support with a specified directory.
6566 if test "$V_PCAP" = snf
; then
6567 # User requested Sniffer-only libpcap, so we'd better have
6570 elif test "xxx_only" = yes; then
6571 # User requested something-else-only pcap, so they don't
6576 # Use Sniffer API if present, otherwise don't
6585 # Check whether --with-snf-includes was given.
6586 if test "${with_snf_includes+set}" = set; then :
6587 withval
=$with_snf_includes;
6588 # User wants SNF with specific header directory
6590 snf_include_dir
=$withval
6596 # Check whether --with-snf-libraries was given.
6597 if test "${with_snf_libraries+set}" = set; then :
6598 withval
=$with_snf_libraries;
6599 # User wants SNF with specific lib directory
6601 snf_lib_dir
=$withval
6606 ac_cv_lbl_snf_api
=no
6607 if test "$with_snf" != no
; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6610 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6612 # If necessary, set default paths for Sniffer headers and libraries.
6613 if test -z "$snf_root"; then
6617 if test -z "$snf_include_dir"; then
6618 snf_include_dir
="$snf_root/include"
6621 if test -z "$snf_lib_dir"; then
6622 snf_lib_dir
="$snf_root/lib"
6625 if test -f "$snf_include_dir/snf.h"; then
6626 # We found a header; make sure we can link with the library
6627 saved_ldflags
=$LDFLAGS
6628 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6630 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6631 if ${ac_cv_lib_snf_snf_init+:} false
; then :
6632 $as_echo_n "(cached) " >&6
6634 ac_check_lib_save_LIBS
=$LIBS
6636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6639 /* Override any GCC internal prototype to avoid an error.
6640 Use char because int might match the return type of a GCC
6641 builtin and then its argument prototype would still apply. */
6654 if ac_fn_c_try_link
"$LINENO"; then :
6655 ac_cv_lib_snf_snf_init
=yes
6657 ac_cv_lib_snf_snf_init
=no
6659 rm -f core conftest.err conftest.
$ac_objext \
6660 conftest
$ac_exeext conftest.
$ac_ext
6661 LIBS
=$ac_check_lib_save_LIBS
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6664 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6665 if test "x$ac_cv_lib_snf_snf_init" = xyes
; then :
6666 ac_cv_lbl_snf_api
="yes"
6669 LDFLAGS
="$saved_ldflags"
6670 if test "$ac_cv_lbl_snf_api" = no
; then
6671 as_fn_error $?
"SNF API cannot correctly be linked; check config.log" "$LINENO" 5
6675 if test "$ac_cv_lbl_snf_api" = yes; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($snf_root)" >&5
6677 $as_echo "yes ($snf_root)" >&6; }
6679 V_INCLS
="$V_INCLS -I$snf_include_dir"
6681 LDFLAGS
="$LDFLAGS -L$snf_lib_dir"
6683 if test "$V_PCAP" != snf
; then
6684 SSRC
="$SSRC pcap-snf.c"
6688 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6694 if test "$want_snf" = yes; then
6695 # User requested "snf" capture type but
6696 # we couldn't find the Sniffer API support.
6697 as_fn_error $?
"Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
6700 if test "$want_snf" = yes; then
6701 as_fn_error $?
"Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't found at $snf_include_dir: make sure the Sniffer support is installed, specify a different path or paths if necessary, or don't request Sniffer support" "$LINENO" 5
6706 # Check for Riverbed TurboCap support.
6708 # Check whether --with-turbocap was given.
6709 if test "${with_turbocap+set}" = set; then :
6710 withval
=$with_turbocap;
6711 if test "$withval" = no
6713 # User explicitly doesn't want TurboCap
6715 elif test "$withval" = yes
6717 # User wants TurboCap support but hasn't specified a directory.
6720 # User wants TurboCap support with a specified directory.
6722 turbocap_root
=$withval
6727 if test "xxx_only" = yes; then
6728 # User requested something-else-only pcap, so they don't
6729 # want TurboCap support.
6733 # Use TurboCap API if present, otherwise don't
6735 want_turbocap
=ifpresent
6741 ac_cv_lbl_turbocap_api
=no
6742 if test "$want_turbocap" != no
; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TurboCap is supported" >&5
6745 $as_echo_n "checking whether TurboCap is supported... " >&6; }
6747 save_CFLAGS
="$CFLAGS"
6749 if test ! -z "$turbocap_root"; then
6750 TURBOCAP_CFLAGS
="-I$turbocap_root/include"
6751 TURBOCAP_LIBS
="-L$turbocap_root/lib"
6752 CFLAGS
="$CFLAGS $TURBOCAP_CFLAGS"
6755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6764 TC_INSTANCE a; TC_PORT b; TC_BOARD c;
6766 (void)TcInstanceCreateByName("foo", &i);
6772 if ac_fn_c_try_compile
"$LINENO"; then :
6773 ac_cv_lbl_turbocap_api
=yes
6775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6777 CFLAGS
="$save_CFLAGS"
6778 if test $ac_cv_lbl_turbocap_api = yes; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6780 $as_echo "yes" >&6; }
6782 SSRC
="$SSRC pcap-tc.c"
6783 V_INCLS
="$V_INCLS $TURBOCAP_CFLAGS"
6784 LIBS
="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
6787 $as_echo "#define HAVE_TC_API 1" >>confdefs.h
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6793 if test "$want_turbocap" = yes; then
6794 # User wanted Turbo support but we couldn't find it.
6795 as_fn_error $?
"TurboCap support requested with --with-turbocap, but the TurboCap headers weren't found: make sure the TurboCap support is installed or don't request TurboCap support" "$LINENO" 5
6803 for ac_prog
in flex
lex
6805 # Extract the first word of "$ac_prog", so it can be a program name with args.
6806 set dummy
$ac_prog; ac_word
=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_LEX+:} false
; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$LEX"; then
6813 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
6815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir
=.
6820 for ac_exec_ext
in '' $ac_executable_extensions; do
6821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_LEX
="$ac_prog"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 if test -n "$LEX"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6835 $as_echo "$LEX" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6842 test -n "$LEX" && break
6844 test -n "$LEX" || LEX
=":"
6846 if test "x$LEX" != "x:"; then
6847 cat >conftest.l
<<_ACEOF
6853 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6854 yyless ((input () != 0)); }
6855 f { unput (yytext[0]); }
6856 . { BEGIN INITIAL; }
6858 #ifdef YYTEXT_POINTER
6859 extern char *yytext;
6864 return ! yylex () + ! yywrap ();
6867 { { ac_try
="$LEX conftest.l"
6869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6873 $as_echo "$ac_try_echo"; } >&5
6874 (eval "$LEX conftest.l") 2>&5
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6879 $as_echo_n "checking lex output file root... " >&6; }
6880 if ${ac_cv_prog_lex_root+:} false; then :
6881 $as_echo_n "(cached) " >&6
6884 if test -f lex.yy.c; then
6885 ac_cv_prog_lex_root=lex.yy
6886 elif test -f lexyy.c; then
6887 ac_cv_prog_lex_root=lexyy
6889 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6893 $as_echo "$ac_cv_prog_lex_root" >&6; }
6894 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6896 if test -z "${LEXLIB+set}"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6898 $as_echo_n "checking lex library... " >&6; }
6899 if ${ac_cv_lib_lex+:} false; then :
6900 $as_echo_n "(cached) " >&6
6904 ac_cv_lib_lex='none needed'
6905 for ac_lib in '' -lfl -ll; do
6906 LIBS="$ac_lib $ac_save_LIBS"
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 `cat $LEX_OUTPUT_ROOT.c
`
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 ac_cv_lib_lex=$ac_lib
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 test "$ac_cv_lib_lex" != 'none needed' && break
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6922 $as_echo "$ac_cv_lib_lex" >&6; }
6923 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6928 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6929 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 # POSIX says lex can declare yytext either as a pointer or an array; the
6933 # default is implementation-dependent. Figure out which it is, since
6934 # not all implementations provide the %pointer and %array declarations.
6935 ac_cv_prog_lex_yytext_pointer=no
6937 LIBS="$LEXLIB $ac_save_LIBS"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 #define YYTEXT_POINTER 1
6942 `cat $LEX_OUTPUT_ROOT.c
`
6944 if ac_fn_c_try_link "$LINENO"; then :
6945 ac_cv_prog_lex_yytext_pointer=yes
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6953 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6954 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6956 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6959 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6962 if test "$LEX" = ":"; then
6963 as_fn_error $? "Neither flex nor lex was found." "$LINENO" 5
6967 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
6968 # and supports processing our scanner.l.
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
6971 $as_echo_n "checking for capable lex... " >&6; }
6972 if ${tcpdump_cv_capable_lex+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
6976 tcpdump_cv_capable_lex=yes
6978 tcpdump_cv_capable_lex=insufficient
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
6982 $as_echo "$tcpdump_cv_capable_lex" >&6; }
6983 if test $tcpdump_cv_capable_lex = insufficient ; then
6984 as_fn_error $? "$LEX is insufficient to compile libpcap.
6985 libpcap requires Flex 2.5.31 or later, or a compatible version of lex." "$LINENO" 5
6989 # Look for yacc/bison/byacc.
6991 for ac_prog in 'bison -y' byacc
6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
6994 set dummy $ac_prog; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_YACC+:} false; then :
6998 $as_echo_n "(cached) " >&6
7000 if test -n "$YACC"; then
7001 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_YACC="$ac_prog"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 YACC=$ac_cv_prog_YACC
7021 if test -n "$YACC"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7023 $as_echo "$YACC" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7030 test -n "$YACC" && break
7032 test -n "$YACC" || YACC="yacc"
7036 # Make sure it supports the -p flag and supports processing our
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable yacc/bison" >&5
7040 $as_echo_n "checking for capable yacc/bison... " >&6; }
7041 if ${tcpdump_cv_capable_yacc+:} false; then :
7042 $as_echo_n "(cached) " >&6
7044 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
7045 tcpdump_cv_capable_yacc=yes
7047 tcpdump_cv_capable_yacc=insufficient
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_yacc" >&5
7051 $as_echo "$tcpdump_cv_capable_yacc" >&6; }
7052 if test $tcpdump_cv_capable_yacc = insufficient ; then
7053 as_fn_error $? "$YACC is insufficient to compile libpcap.
7054 libpcap requires Bison, Berkeley YACC, or another YACC compatible with them." "$LINENO" 5
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable remote packet capture" >&5
7058 $as_echo_n "checking whether to enable remote packet capture... " >&6; }
7059 # Check whether --enable-remote was given.
7060 if test "${enable_remote+set}" = set; then :
7061 enableval=$enable_remote;
7066 case "$enableval" in
7067 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Remote packet capture may expose libpcap-based applications" >&5
7070 $as_echo "$as_me: WARNING: Remote packet capture may expose libpcap-based applications" >&2;}
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to attacks by malicious remote capture servers!" >&5
7072 $as_echo "$as_me: WARNING: to attacks by malicious remote capture servers!" >&2;}
7074 $as_echo "#define HAVE_REMOTE /**/" >>confdefs.h
7076 SSRC="$SSRC pcap-new.c pcap-rpcap.c sockutils.c"
7078 INSTALL_RPCAPD=install-rpcapd
7080 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7086 # Assume, by default, no support for shared libraries and V7/BSD convention
7087 # for man pages (file formats in section 5, miscellaneous info in section 7).
7088 # Individual cases can override this.
7093 MAN_USERMOD_SECTION=8
7098 $as_echo "#define _SUN 1" >>confdefs.h
7102 # AIX makes it fun to build shared and static libraries,
7103 # because they're *both* ".a" archive libraries. We
7104 # build the static library for the benefit of the traditional
7105 # scheme of building libpcap and tcpdump in subdirectories of
7106 # the same directory, with tcpdump statically linked with the
7107 # libpcap in question, but we also build a shared library as
7108 # "libpcap.shareda" and install *it*, rather than the static
7109 # library, as "libpcap.a".
7117 # If we're using DLPI, applications will need to
7118 # use /lib/pse.exp if present, as we use the
7121 pseexe="/lib/pse.exp"
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
7123 $as_echo_n "checking for $pseexe... " >&6; }
7124 if test -f $pseexe ; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7126 $as_echo "yes" >&6; }
7133 # If we're using BPF, we need "-lodm" and "-lcfg", as
7134 # we use them to load the BPF module.
7143 V_CCOPT="$V_CCOPT -fno-common"
7144 # Check whether --enable-universal was given.
7145 if test "${enable_universal+set}" = set; then :
7146 enableval=$enable_universal;
7149 if test "$enable_universal" != "no"; then
7154 # Pre-Tiger. Build only for 32-bit PowerPC; no
7155 # need for any special compiler or linker flags.
7161 # Tiger, prior to Intel support. Build for 32-bit
7162 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
7163 # first. (I'm guessing that's what Apple does.)
7165 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
7166 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
7171 # Tiger, subsequent to Intel support but prior to
7172 # x86-64 support. Build for 32-bit PowerPC, 64-bit
7173 # PowerPC, and x86, with 32-bit PowerPC first.
7174 # (I'm guessing that's what Apple does.)
7176 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
7177 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
7182 # All other Tiger, so subsequent to x86-64
7183 # support. Build for 32-bit PowerPC, 64-bit
7184 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
7185 # first. (I'm guessing that's what Apple does.)
7187 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7188 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7193 # Leopard. Build for 32-bit PowerPC, 64-bit
7194 # PowerPC, x86, and x86-64, with 32-bit PowerPC
7195 # first. (That's what Apple does.)
7197 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7198 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
7203 # Snow Leopard. Build for x86-64, x86, and
7204 # 32-bit PowerPC, with x86-64 first. (That's
7205 # what Apple does, even though Snow Leopard
7206 # doesn't run on PPC, so PPC libpcap runs under
7207 # Rosetta, and Rosetta doesn't support BPF
7208 # ioctls, so PPC programs can't do live
7211 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
7212 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
7217 # Post-Snow Leopard. Build for x86-64 and
7218 # x86, with x86-64 first. (That's probably what
7219 # Apple does, given that Rosetta is gone.)
7220 # XXX - update if and when Apple drops support
7221 # for 32-bit x86 code.
7223 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
7224 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
7232 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
7236 # Use System V conventions for man pages.
7245 # Use System V conventions for man pages.
7254 # Use System V conventions for man pages.
7262 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
7264 if test "`uname
-m`" = "ia64"; then
7271 # "-b" builds a shared library; "+h" sets the soname.
7277 # Use System V conventions for man pages.
7285 # Use System V conventions for man pages.
7291 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
7295 # Compiler assumed to be GCC; run-time linker may require a -R
7298 if test "$libdir" != "/usr/lib"; then
7299 V_RFLAGS=-Wl,-R$libdir
7307 # Use System V conventions for man pages.
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
7315 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
7316 if ${ac_cv_cc_sinix_defined+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331 ac_cv_cc_sinix_defined=yes
7333 ac_cv_cc_sinix_defined=no
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
7339 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
7340 if test $ac_cv_cc_sinix_defined = no ; then
7342 $as_echo "#define sinix 1" >>confdefs.h
7349 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
7354 case "`uname
-r`" in
7361 # Use System V conventions for man pages.
7363 MAN_USERMOD_SECTION=1m
7370 # Check whether --enable-shared was given.
7371 if test "${enable_shared+set}" = set; then :
7372 enableval=$enable_shared;
7375 test "x$enable_shared" = "xno" && DYEXT="none"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_RANLIB+:} false; then :
7383 $as_echo_n "(cached) " >&6
7385 if test -n "$RANLIB"; then
7386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 RANLIB=$ac_cv_prog_RANLIB
7406 if test -n "$RANLIB"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7408 $as_echo "$RANLIB" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7416 if test -z "$ac_cv_prog_RANLIB"; then
7417 ac_ct_RANLIB=$RANLIB
7418 # Extract the first word of "ranlib", so it can be a program name with args.
7419 set dummy ranlib; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 if test -n "$ac_ct_RANLIB"; then
7426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_RANLIB="ranlib"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7446 if test -n "$ac_ct_RANLIB"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7448 $as_echo "$ac_ct_RANLIB" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7454 if test "x$ac_ct_RANLIB" = x; then
7457 case $cross_compiling:$ac_tool_warned in
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7463 RANLIB=$ac_ct_RANLIB
7466 RANLIB="$ac_cv_prog_RANLIB"
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}ar; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_AR+:} false; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$AR"; then
7478 ac_cv_prog_AR="$AR" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_AR="${ac_tool_prefix}ar"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 if test -n "$AR"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7500 $as_echo "$AR" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7508 if test -z "$ac_cv_prog_AR"; then
7510 # Extract the first word of "ar", so it can be a program name with args.
7511 set dummy ar; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 if test -n "$ac_ct_AR"; then
7518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_AR="ar"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7538 if test -n "$ac_ct_AR"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7540 $as_echo "$ac_ct_AR" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7546 if test "x$ac_ct_AR" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7563 $as_echo_n "checking whether ln -s works... " >&6; }
7565 if test "$LN_S" = "ln -s"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7567 $as_echo "yes" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7570 $as_echo "no, using $LN_S" >&6; }
7576 if test "${LBL_CFLAGS+set}" = set; then
7577 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7579 if test -f .devel ; then
7581 # Skip all the warning option stuff on some compilers.
7583 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler fails when given an unknown warning option" >&5
7586 $as_echo_n "checking whether the compiler fails when given an unknown warning option... " >&6; }
7587 save_CFLAGS="$CFLAGS"
7588 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7600 if ac_fn_c_try_compile "$LINENO"; then :
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7605 # We're assuming this is clang, where
7606 # -Werror=unknown-warning-option is the appropriate
7607 # option to force the compiler to fail.
7609 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7614 $as_echo "yes" >&6; }
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 CFLAGS="$save_CFLAGS"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5
7622 $as_echo_n "checking whether the compiler supports the -Wall option... " >&6; }
7623 save_CFLAGS="$CFLAGS"
7624 if expr "x-Wall" : "x-W.*" >/dev/null
7626 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
7627 elif expr "x-Wall" : "x-f.*" >/dev/null
7629 CFLAGS="$CFLAGS -Werror -Wall"
7630 elif expr "x-Wall" : "x-m.*" >/dev/null
7632 CFLAGS="$CFLAGS -Werror -Wall"
7634 CFLAGS="$CFLAGS -Wall"
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7647 if ac_fn_c_try_compile "$LINENO"; then :
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7650 $as_echo "yes" >&6; }
7651 CFLAGS="$save_CFLAGS"
7652 V_CCOPT="$V_CCOPT -Wall"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658 CFLAGS="$save_CFLAGS"
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5
7665 $as_echo_n "checking whether the compiler supports the -Wsign-compare option... " >&6; }
7666 save_CFLAGS="$CFLAGS"
7667 if expr "x-Wsign-compare" : "x-W.*" >/dev/null
7669 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wsign-compare"
7670 elif expr "x-Wsign-compare" : "x-f.*" >/dev/null
7672 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7673 elif expr "x-Wsign-compare" : "x-m.*" >/dev/null
7675 CFLAGS="$CFLAGS -Werror -Wsign-compare"
7677 CFLAGS="$CFLAGS -Wsign-compare"
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7690 if ac_fn_c_try_compile "$LINENO"; then :
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7693 $as_echo "yes" >&6; }
7694 CFLAGS="$save_CFLAGS"
7695 V_CCOPT="$V_CCOPT -Wsign-compare"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 CFLAGS="$save_CFLAGS"
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5
7708 $as_echo_n "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; }
7709 save_CFLAGS="$CFLAGS"
7710 if expr "x-Wmissing-prototypes" : "x-W.*" >/dev/null
7712 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
7713 elif expr "x-Wmissing-prototypes" : "x-f.*" >/dev/null
7715 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7716 elif expr "x-Wmissing-prototypes" : "x-m.*" >/dev/null
7718 CFLAGS="$CFLAGS -Werror -Wmissing-prototypes"
7720 CFLAGS="$CFLAGS -Wmissing-prototypes"
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7733 if ac_fn_c_try_compile "$LINENO"; then :
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7736 $as_echo "yes" >&6; }
7737 CFLAGS="$save_CFLAGS"
7738 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 CFLAGS="$save_CFLAGS"
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5
7751 $as_echo_n "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; }
7752 save_CFLAGS="$CFLAGS"
7753 if expr "x-Wstrict-prototypes" : "x-W.*" >/dev/null
7755 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
7756 elif expr "x-Wstrict-prototypes" : "x-f.*" >/dev/null
7758 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7759 elif expr "x-Wstrict-prototypes" : "x-m.*" >/dev/null
7761 CFLAGS="$CFLAGS -Werror -Wstrict-prototypes"
7763 CFLAGS="$CFLAGS -Wstrict-prototypes"
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7776 if ac_fn_c_try_compile "$LINENO"; then :
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7780 CFLAGS="$save_CFLAGS"
7781 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 CFLAGS="$save_CFLAGS"
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5
7794 $as_echo_n "checking whether the compiler supports the -Wshadow option... " >&6; }
7795 save_CFLAGS="$CFLAGS"
7796 if expr "x-Wshadow" : "x-W.*" >/dev/null
7798 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wshadow"
7799 elif expr "x-Wshadow" : "x-f.*" >/dev/null
7801 CFLAGS="$CFLAGS -Werror -Wshadow"
7802 elif expr "x-Wshadow" : "x-m.*" >/dev/null
7804 CFLAGS="$CFLAGS -Werror -Wshadow"
7806 CFLAGS="$CFLAGS -Wshadow"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7819 if ac_fn_c_try_compile "$LINENO"; then :
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7822 $as_echo "yes" >&6; }
7823 CFLAGS="$save_CFLAGS"
7824 V_CCOPT="$V_CCOPT -Wshadow"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 CFLAGS="$save_CFLAGS"
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wdeclaration-after-statement option" >&5
7837 $as_echo_n "checking whether the compiler supports the -Wdeclaration-after-statement option... " >&6; }
7838 save_CFLAGS="$CFLAGS"
7839 if expr "x-Wdeclaration-after-statement" : "x-W.*" >/dev/null
7841 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wdeclaration-after-statement"
7842 elif expr "x-Wdeclaration-after-statement" : "x-f.*" >/dev/null
7844 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7845 elif expr "x-Wdeclaration-after-statement" : "x-m.*" >/dev/null
7847 CFLAGS="$CFLAGS -Werror -Wdeclaration-after-statement"
7849 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7862 if ac_fn_c_try_compile "$LINENO"; then :
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865 $as_echo "yes" >&6; }
7866 CFLAGS="$save_CFLAGS"
7867 V_CCOPT="$V_CCOPT -Wdeclaration-after-statement"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 CFLAGS="$save_CFLAGS"
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5
7880 $as_echo_n "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; }
7881 save_CFLAGS="$CFLAGS"
7882 if expr "x-Wused-but-marked-unused" : "x-W.*" >/dev/null
7884 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wused-but-marked-unused"
7885 elif expr "x-Wused-but-marked-unused" : "x-f.*" >/dev/null
7887 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
7888 elif expr "x-Wused-but-marked-unused" : "x-m.*" >/dev/null
7890 CFLAGS="$CFLAGS -Werror -Wused-but-marked-unused"
7892 CFLAGS="$CFLAGS -Wused-but-marked-unused"
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7905 if ac_fn_c_try_compile "$LINENO"; then :
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7909 CFLAGS="$save_CFLAGS"
7910 V_CCOPT="$V_CCOPT -Wused-but-marked-unused"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 CFLAGS="$save_CFLAGS"
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5
7924 $as_echo_n "checking whether the compiler supports generating dependencies... " >&6; }
7925 if test "$GCC" = yes ; then
7927 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
7928 # though it's not); we assume that, in this case, the flag
7931 ac_lbl_dependency_flag="-M"
7934 # Not GCC or a compiler deemed to be GCC; what platform is
7935 # this? (We're assuming that if the compiler isn't GCC
7936 # it's the compiler from the vendor of the OS; that won't
7937 # necessarily be true for x86 platforms, where it might be
7938 # the Intel C compiler.)
7944 # MIPS C for IRIX, DEC C, and clang all use -M.
7946 ac_lbl_dependency_flag="-M"
7953 ac_lbl_dependency_flag="-xM"
7958 # HP's older C compilers don't support this.
7959 # HP's newer C compilers support this with
7960 # either +M or +Make; the older compilers
7961 # interpret +M as something completely
7962 # different, so we use +Make so we don't
7963 # think it works with the older compilers.
7965 ac_lbl_dependency_flag="+Make"
7970 # Not one of the above; assume no support for
7971 # generating dependencies.
7973 ac_lbl_dependency_flag=""
7979 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
7980 # complain about it?
7982 # Note: clang doesn't seem to exit with an error status when handed
7983 # an unknown non-warning error, even if you pass it
7984 # -Werror=unknown-warning-option. However, it always supports
7985 # -M, so the fact that this test always succeeds with clang
7988 if test ! -z "$ac_lbl_dependency_flag"; then
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 int main(void) { return 0; }
7993 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
7994 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5
7996 $as_echo "yes, with $ac_lbl_dependency_flag" >&6; }
7997 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
7998 MKDEP='${srcdir}/mkdep'
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8003 # We can't run mkdep, so have "make depend" do
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8013 # We can't run mkdep, so have "make depend" do
8022 # We used to set -n32 for IRIX 6 when not using GCC (presumed
8023 # to mean that we're using MIPS C or MIPSpro C); it specified
8024 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm
8025 # not sure why that would be something to do *only* with a
8026 # .devel file; why should the ABI for which we produce code
8029 os=`echo $host_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8031 if test -f $name ; then
8032 ln -s $name os-proto.h
8034 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
8038 $as_echo "$as_me: WARNING: can't find $name" >&2;}
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
8043 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
8044 if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8050 # include <sys/types.h>
8051 # include <sys/socket.h>
8055 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 ac_cv_lbl_sockaddr_has_sa_len=yes
8063 ac_cv_lbl_sockaddr_has_sa_len=no
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8069 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8070 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8072 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
8077 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
8078 if ${ac_cv_lbl_has_sockaddr_storage+:} false; then :
8079 $as_echo_n "(cached) " >&6
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8084 # include <sys/types.h>
8085 # include <sys/socket.h>
8089 u_int i = sizeof (struct sockaddr_storage)
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_lbl_has_sockaddr_storage=yes
8097 ac_cv_lbl_has_sockaddr_storage=no
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8103 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
8104 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8106 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
8111 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
8112 if ${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+:} false; then :
8113 $as_echo_n "(cached) " >&6
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8118 # include <sys/types.h>
8119 # include <sys/dlpi.h>
8120 # include <sys/dlpi_ext.h>
8124 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
8132 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
8138 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
8139 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
8141 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
8146 $as_echo_n "checking if unaligned accesses fail... " >&6; }
8147 if ${ac_cv_lbl_unaligned_fail+:} false; then :
8148 $as_echo_n "(cached) " >&6
8153 # These are CPU types where:
8155 # the CPU faults on an unaligned access, but at least some
8156 # OSes that support that CPU catch the fault and simulate
8157 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
8158 # the simulation is slow, so we don't want to use it;
8160 # the CPU, I infer (from the old
8162 # XXX: should also check that they don't do weird things (like on arm)
8164 # comment) doesn't fault on unaligned accesses, but doesn't
8165 # do a normal unaligned fetch, either (e.g., presumably, ARM);
8167 # for whatever reason, the test program doesn't work
8168 # (this has been claimed to be the case for several of those
8169 # CPUs - I don't know what the problem is; the problem
8170 # was reported as "the test program dumps core" for SuperH,
8171 # but that's what the test program is *supposed* to do -
8172 # it dumps core before it writes anything, so the test
8173 # for an empty output file should find an empty output
8174 # file and conclude that unaligned accesses don't work).
8176 # This run-time test won't work if you're cross-compiling, so
8177 # in order to support cross-compiling for a particular CPU,
8178 # we have to wire in the list of CPU types anyway, as far as
8179 # I know, so perhaps we should just have a set of CPUs on
8180 # which we know it doesn't work, a set of CPUs on which we
8181 # know it does work, and have the script just fail on other
8182 # cpu types and update it when such a failure occurs.
8184 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
8185 ac_cv_lbl_unaligned_fail=yes
8189 cat >conftest.c <<EOF
8190 # include <sys/types.h>
8191 # include <sys/wait.h>
8193 unsigned char a[5] = { 1, 2, 3, 4, 5 };
8198 /* avoid "core dumped" message */
8204 pid = waitpid(pid, &status, 0);
8207 exit(!WIFEXITED(status));
8210 i = *(unsigned int *)&a[1];
8215 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
8216 conftest.c $LIBS >/dev/null 2>&1
8217 if test ! -x conftest ; then
8218 ac_cv_lbl_unaligned_fail=yes
8220 ./conftest >conftest.out
8221 if test ! -s conftest.out ; then
8222 ac_cv_lbl_unaligned_fail=yes
8224 ac_cv_lbl_unaligned_fail=no
8227 rm -f -r conftest* core core.conftest
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
8233 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
8234 if test $ac_cv_lbl_unaligned_fail = yes ; then
8236 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
8241 ln -s ${srcdir}/bpf/net net
8264 # Check whether --enable-usb was given.
8265 if test "${enable_usb+set}" = set; then :
8266 enableval=$enable_usb;
8272 if test "xxx_only" = yes; then
8273 # User requested something-else-only pcap, so they don't
8278 if test "x$enable_usb" != "xno" ; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
8280 $as_echo_n "checking for USB sniffing support... " >&6; }
8284 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
8286 USB_SRC=pcap-usb-linux.c
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8288 $as_echo "yes" >&6; }
8289 ac_usb_dev_name=`udevinfo
-q name
-p /sys
/class
/usb_device
/usbmon
2>/dev
/null
`
8290 if test $? -ne 0 ; then
8291 ac_usb_dev_name="usbmon"
8294 cat >>confdefs.h <<_ACEOF
8295 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
8299 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
8301 # Do we have a version of <linux/compiler.h> available?
8302 # If so, we might need it for <linux/usbdevice_fs.h>.
8304 for ac_header in linux/compiler.h
8306 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
8307 if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_LINUX_COMPILER_H 1
8316 if test "$ac_cv_header_linux_compiler_h" = yes; then
8318 # Yes - include it when testing for <linux/usbdevice_fs.h>.
8320 for ac_header in linux/usbdevice_fs.h
8322 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
8324 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_LINUX_USBDEVICE_FS_H 1
8334 for ac_header in linux/usbdevice_fs.h
8336 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
8337 if test "x$ac_cv_header_linux_usbdevice_fs_h" = xyes; then :
8338 cat >>confdefs.h <<_ACEOF
8339 #define HAVE_LINUX_USBDEVICE_FS_H 1
8347 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
8349 # OK, does it define bRequestType? Older versions of the kernel
8350 # define fields with names like "requesttype, "request", and
8351 # "value", rather than "bRequestType", "bRequest", and
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
8355 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
8356 if ${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8362 $ac_includes_default
8363 #ifdef HAVE_LINUX_COMPILER_H
8364 #include <linux/compiler.h>
8366 #include <linux/usbdevice_fs.h>
8370 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
8378 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
8384 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
8385 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
8387 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
8394 # This just uses BPF in FreeBSD 8.4 and later; we don't need
8395 # to check for anything special for capturing.
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, in FreeBSD 8.4 and later" >&5
8398 $as_echo "yes, in FreeBSD 8.4 and later" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8410 if test "xxx_only" != yes; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
8412 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416 $as_echo "yes" >&6; }
8418 # Life's too short to deal with trying to get this to compile
8419 # if you don't get the right types defined with
8420 # __KERNEL_STRICT_NAMES getting defined by some other include.
8422 # Check whether the includes Just Work. If not, don't turn on
8423 # netfilter support.
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
8426 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
8427 if ${ac_cv_netfilter_can_compile+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8433 $ac_includes_default
8434 #include <sys/socket.h>
8435 #include <netinet/in.h>
8436 #include <linux/types.h>
8438 #include <linux/netlink.h>
8439 #include <linux/netfilter.h>
8440 #include <linux/netfilter/nfnetlink.h>
8441 #include <linux/netfilter/nfnetlink_log.h>
8442 #include <linux/netfilter/nfnetlink_queue.h>
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452 ac_cv_netfilter_can_compile=yes
8454 ac_cv_netfilter_can_compile=no
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
8460 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
8461 if test $ac_cv_netfilter_can_compile = yes ; then
8463 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
8465 NETFILTER_SRC=pcap-netfilter-linux.c
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8477 # Check whether --enable-netmap was given.
8478 if test "${enable_netmap+set}" = set; then :
8479 enableval=$enable_netmap;
8485 if test "x$enable_netmap" != "xno" ; then
8486 ac_fn_c_check_header_compile "$LINENO" "net/netmap_user.h" "ac_cv_header_net_netmap_user_h" "$ac_includes_default
8489 if test "x$ac_cv_header_net_netmap_user_h" = xyes; then :
8491 $as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h
8493 NETMAP_SRC=pcap-netmap.c
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: netmap is supported" >&5
8495 $as_echo "$as_me: netmap is supported" >&6;}
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: netmap is not supported" >&5
8498 $as_echo "$as_me: netmap is not supported" >&6;}
8507 # Check whether --enable-bluetooth was given.
8508 if test "${enable_bluetooth+set}" = set; then :
8509 enableval=$enable_bluetooth;
8511 enable_bluetooth=ifsupportavailable
8515 if test "xxx_only" = yes; then
8516 # User requested something-else-only pcap, so they don't
8517 # want Bluetooth support.
8521 if test "x$enable_bluetooth" != "xno" ; then
8524 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
8525 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
8528 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
8530 BT_SRC=pcap-bt-linux.c
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
8532 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
8535 # OK, does struct sockaddr_hci have an hci_channel
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_hci has hci_channel member" >&5
8539 $as_echo_n "checking if struct sockaddr_hci has hci_channel member... " >&6; }
8540 if ${ac_cv_lbl_sockaddr_hci_has_hci_channel+:} false; then :
8541 $as_echo_n "(cached) " >&6
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8546 #include <bluetooth/bluetooth.h>
8547 #include <bluetooth/hci.h>
8552 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
8557 if ac_fn_c_try_compile "$LINENO"; then :
8558 ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
8560 ac_cv_lbl_sockaddr_hci_has_hci_channel=no
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
8566 $as_echo "$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
8567 if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
8569 $as_echo "#define SOCKADDR_HCI_HAS_HCI_CHANNEL /**/" >>confdefs.h
8573 # OK, is HCI_CHANNEL_MONITOR defined?
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HCI_CHANNEL_MONITOR is defined" >&5
8576 $as_echo_n "checking if HCI_CHANNEL_MONITOR is defined... " >&6; }
8577 if ${ac_cv_lbl_hci_channel_monitor_is_defined+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 #include <bluetooth/bluetooth.h>
8584 #include <bluetooth/hci.h>
8589 u_int i = HCI_CHANNEL_MONITOR
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 ac_cv_lbl_hci_channel_monitor_is_defined=yes
8597 ac_cv_lbl_hci_channel_monitor_is_defined=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_hci_channel_monitor_is_defined" >&5
8603 $as_echo "$ac_cv_lbl_hci_channel_monitor_is_defined" >&6; }
8604 if test $ac_cv_lbl_hci_channel_monitor_is_defined = yes ; then
8606 $as_echo "#define PCAP_SUPPORT_BT_MONITOR /**/" >>confdefs.h
8608 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
8611 ac_lbl_bluetooth_available=yes
8614 ac_lbl_bluetooth_available=no
8619 if test "x$ac_lbl_bluetooth_available" == "xno" ; then
8620 if test "x$enable_bluetooth" = "xyes" ; then
8621 as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
8624 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
8629 if test "x$enable_bluetooth" = "xyes" ; then
8630 as_fn_error $? "no Bluetooth sniffing support implemented for $host_os" "$LINENO" 5
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
8633 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
8642 # Check whether --enable-dbus was given.
8643 if test "${enable_dbus+set}" = set; then :
8644 enableval=$enable_dbus;
8646 enable_dbus=ifavailable
8650 if test "xxx_only" = yes; then
8651 # User requested something-else-only pcap, so they don't
8652 # want D-Bus support.
8656 if test "x$enable_dbus" != "xno"; then
8657 if test "x$enable_dbus" = "xyes"; then
8662 # We don't support D-Bus sniffing on macOS; see
8664 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8666 # The user requested it, so fail.
8668 as_fn_error $? "Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS" "$LINENO" 5
8675 # We don't support D-Bus sniffing on macOS; see
8677 # https://bugs.freedesktop.org/show_bug.cgi?id=74029
8679 # The user dind't explicitly request it, so just
8680 # silently refuse to enable it.
8688 if test "x$enable_dbus" != "xno"; then
8689 # Extract the first word of "pkg-config", so it can be a program name with args.
8690 set dummy pkg-config; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_prog_PKGCONFIG+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 if test -n "$PKGCONFIG"; then
8697 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706 ac_cv_prog_PKGCONFIG="pkg-config"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 test -z "$ac_cv_prog_PKGCONFIG" && ac_cv_prog_PKGCONFIG="no"
8717 PKGCONFIG=$ac_cv_prog_PKGCONFIG
8718 if test -n "$PKGCONFIG"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8720 $as_echo "$PKGCONFIG" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8727 if test "x$PKGCONFIG" != "xno"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5
8729 $as_echo_n "checking for D-Bus... " >&6; }
8730 if "$PKGCONFIG" dbus-1; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8732 $as_echo "yes" >&6; }
8733 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1
`
8734 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1
`
8735 save_CFLAGS="$CFLAGS"
8737 CFLAGS="$CFLAGS $DBUS_CFLAGS"
8738 LIBS="$LIBS $DBUS_LIBS"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D-Bus library defines dbus_connection_read_write" >&5
8740 $as_echo_n "checking whether the D-Bus library defines dbus_connection_read_write... " >&6; }
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8746 #include <sys/time.h>
8748 #include <dbus/dbus.h>
8752 return dbus_connection_read_write(NULL, 0);
8757 if ac_fn_c_try_link "$LINENO"; then :
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8760 $as_echo "yes" >&6; }
8762 $as_echo "#define PCAP_SUPPORT_DBUS 1" >>confdefs.h
8764 DBUS_SRC=pcap-dbus.c
8765 V_INCLS="$V_INCLS $DBUS_CFLAGS"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 if test "x$enable_dbus" = "xyes"; then
8772 as_fn_error $? "--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_write()" "$LINENO" 5
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 CFLAGS="$save_CFLAGS"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8783 if test "x$enable_dbus" = "xyes"; then
8784 as_fn_error $? "--enable-dbus was given, but the dbus-1 package is not installed" "$LINENO" 5
8794 for ac_header in linux/net_tstamp.h
8796 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
8797 if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
8798 cat >>confdefs.h <<_ACEOF
8799 #define HAVE_LINUX_NET_TSTAMP_H 1
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
8809 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
8813 # Check whether --enable-packet-ring was given.
8814 if test "${enable_packet_ring+set}" = set; then :
8815 enableval=$enable_packet_ring;
8817 enable_packet_ring=yes
8821 if test "x$enable_packet_ring" != "xno" ; then
8823 $as_echo "#define PCAP_SUPPORT_PACKET_RING 1" >>confdefs.h
8828 # Check whether --enable-rdma was given.
8829 if test "${enable_rdma+set}" = set; then :
8830 enableval=$enable_rdma;
8832 enable_rdmasniff=ifavailable
8836 if test "xxx_only" = yes; then
8837 # User requested something-else-only pcap, so they don't
8838 # want RDMA support.
8842 if test "x$enable_rdmasniff" != "xno"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_get_device_list in -libverbs" >&5
8844 $as_echo_n "checking for ibv_get_device_list in -libverbs... " >&6; }
8845 if ${ac_cv_lib_ibverbs_ibv_get_device_list+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 ac_check_lib_save_LIBS=$LIBS
8849 LIBS="-libverbs $LIBS"
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8853 /* Override any GCC internal prototype to avoid an error.
8854 Use char because int might match the return type of a GCC
8855 builtin and then its argument prototype would still apply. */
8859 char ibv_get_device_list ();
8863 return ibv_get_device_list ();
8868 if ac_fn_c_try_link "$LINENO"; then :
8869 ac_cv_lib_ibverbs_ibv_get_device_list=yes
8871 ac_cv_lib_ibverbs_ibv_get_device_list=no
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_get_device_list" >&5
8878 $as_echo "$ac_cv_lib_ibverbs_ibv_get_device_list" >&6; }
8879 if test "x$ac_cv_lib_ibverbs_ibv_get_device_list" = xyes; then :
8881 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default"
8882 if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then :
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libibverbs defines ibv_create_flow" >&5
8885 $as_echo_n "checking whether libibverbs defines ibv_create_flow... " >&6; }
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8889 #include <infiniband/verbs.h>
8895 (void) ibv_create_flow((struct ibv_qp *) NULL,
8896 (struct ibv_flow_attr *) NULL);
8902 if ac_fn_c_try_link "$LINENO"; then :
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8905 $as_echo "yes" >&6; }
8907 $as_echo "#define PCAP_SUPPORT_RDMASNIFF /**/" >>confdefs.h
8909 RDMA_SRC=pcap-rdmasniff.c
8910 LIBS="-libverbs $LIBS"
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8932 # Find a good install program. We prefer a C program (faster),
8933 # so one script is as good as another. But avoid the broken or
8934 # incompatible versions:
8935 # SysV /etc/install, /usr/sbin/install
8936 # SunOS /usr/etc/install
8937 # IRIX /sbin/install
8939 # AmigaOS /C/install, which installs bootblocks on floppy discs
8940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8943 # OS/2's system install, which has a completely different semantic
8944 # ./install, which can be erroneously created by make from ./install.sh.
8945 # Reject install programs that cannot install multiple files.
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8948 if test -z "$INSTALL"; then
8949 if ${ac_cv_path_install+:} false; then :
8950 $as_echo_n "(cached) " >&6
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 test -z "$as_dir" && as_dir=.
8957 # Account for people who put trailing slashes in PATH elements.
8958 case $as_dir/ in #((
8959 ./ | .// | /[cC]/* | \
8960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8964 # OSF1 and SCO ODT 3.0 have their own names for install.
8965 # Don't use installbsd from OSF since it installs stuff as root
8967 for ac_prog in ginstall scoinst install; do
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8970 if test $ac_prog = install &&
8971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8972 # AIX install. It has an incompatible calling convention.
8974 elif test $ac_prog = install &&
8975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8976 # program-specific install script used by HP pwplus--don't use.
8979 rm -rf conftest.one conftest.two conftest.dir
8980 echo one > conftest.one
8981 echo two > conftest.two
8983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8984 test -s conftest.one && test -s conftest.two &&
8985 test -s conftest.dir/conftest.one &&
8986 test -s conftest.dir/conftest.two
8988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9001 rm -rf conftest.one conftest.two conftest.dir
9004 if test "${ac_cv_path_install+set}" = set; then
9005 INSTALL=$ac_cv_path_install
9007 # As a last resort, use the slow shell script. Don't cache a
9008 # value for INSTALL within a source directory, because that will
9009 # break other packages using the cache if that directory is
9010 # removed, or if the value is a relative name.
9011 INSTALL=$ac_install_sh
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9015 $as_echo "$INSTALL" >&6; }
9017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9018 # It thinks the first close brace ends the variable substitution.
9019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9026 ac_config_headers="$ac_config_headers config.h"
9029 ac_config_commands="$ac_config_commands default-1"
9031 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_get_tstamp_precision.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_precision.3pcap pcap_set_tstamp_type.3pcap rpcapd/Makefile"
9033 cat >confcache <<\_ACEOF
9034 # This file is a shell script that caches the results of configure
9035 # tests run on this system so they can be shared between configure
9036 # scripts and configure runs, see configure's option --config-cache.
9037 # It is not useful on other systems. If it contains results you don't
9038 # want to keep, you may remove or edit it.
9040 # config.status only pays attention to the cache file if you give it
9041 # the --recheck option to rerun configure.
9043 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9049 # The following way of writing the cache mishandles newlines in values,
9050 # but we know of no workaround that is simple, portable, and efficient.
9051 # So, we kill variables containing newlines.
9052 # Ultrix sh set writes to stderr and can't be redirected directly,
9053 # and sets the high bit in the cache file unless we assign to the vars.
9055 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9056 eval ac_val
=\$
$ac_var
9060 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9064 _ | IFS | as_nl
) ;; #(
9065 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9066 *) { eval $ac_var=; unset $ac_var;} ;;
9072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9073 *${as_nl}ac_space
=\
*)
9074 # `set' does not quote correctly, so add quotes: double-quote
9075 # substitution turns \\\\ into \\, and sed turns \\ into \.
9078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9081 # `set' quotes correctly as required by POSIX, so do not add quotes.
9082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9095 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9096 if test -w "$cache_file"; then
9097 if test "x$cache_file" != "x/dev/null"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9099 $as_echo "$as_me: updating cache $cache_file" >&6;}
9100 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9101 cat confcache
>"$cache_file"
9103 case $cache_file in #(
9105 mv -f confcache
"$cache_file"$$
&&
9106 mv -f "$cache_file"$$
"$cache_file" ;; #(
9108 mv -f confcache
"$cache_file" ;;
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9119 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9120 # Let make expand exec_prefix.
9121 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9123 DEFS
=-DHAVE_CONFIG_H
9128 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9129 # 1. Remove the extension, and $U if already installed.
9130 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9131 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9133 # will be set to the directory where LIBOBJS objects are built.
9134 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9135 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9139 LTLIBOBJS
=$ac_ltlibobjs
9143 : "${CONFIG_STATUS=./config.status}"
9145 ac_clean_files_save
=$ac_clean_files
9146 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9152 # Generated by $as_me.
9153 # Run this file to recreate the current configuration.
9154 # Compiler output produced by configure, useful for debugging
9155 # configure, is in config.log if it exists.
9161 SHELL=\${CONFIG_SHELL-$SHELL}
9164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9165 ## -------------------- ##
9166 ## M4sh Initialization. ##
9167 ## -------------------- ##
9169 # Be more Bourne compatible
9170 DUALCASE
=1; export DUALCASE
# for MKS sh
9171 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9175 # is contrary to our usage. Disable this feature.
9176 alias -g '${1+"$@"}'='"$@"'
9177 setopt NO_GLOB_SUBST
9179 case `(set -o) 2>/dev/null` in #(
9191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9192 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9195 # Prefer a ksh shell builtin over an external printf program on Solaris,
9196 # but without wasting forks for bash or zsh.
9197 if test -z "$BASH_VERSION$ZSH_VERSION" \
9198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9199 as_echo='print
-r --'
9200 as_echo_n='print
-rn --'
9201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9202 as_echo='printf %s
\n'
9203 as_echo_n='printf %s
'
9205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9206 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9207 as_echo_n='/usr
/ucb
/echo -n'
9209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9210 as_echo_n_body='eval
9214 expr "X$arg" : "X\\(.*\\)$as_nl";
9215 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9217 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
9219 export as_echo_n_body
9220 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9223 as_echo='sh
-c $as_echo_body as_echo
'
9226 # The user is always right.
9227 if test "${PATH_SEPARATOR+set}" != set; then
9229 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9230 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9237 # We need space, tab and new line, in precisely that order. Quoting is
9238 # there to prevent editors from complaining about space-tab.
9239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9240 # splitting by setting IFS to empty value.)
9243 # Find who we are. Look in the path if we contain no directory separator.
9246 *[\\/]* ) as_myself=$0 ;;
9247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir=.
9252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9258 # We did not find ourselves, most probably we were run as `sh COMMAND'
9259 # in which case we are not to be found in the path.
9260 if test "x$as_myself" = x
; then
9263 if test ! -f "$as_myself"; then
9264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9268 # Unset variables that we do not need and which cause bugs (e.g. in
9269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9270 # suppresses any "Segmentation fault" message there. '((' could
9271 # trigger a bug in pdksh 5.2.14.
9272 for as_var
in BASH_ENV ENV MAIL MAILPATH
9273 do eval test x\
${$as_var+set} = xset \
9274 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
9287 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9290 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9291 # ----------------------------------------
9292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9294 # script with STATUS, using 1 if that was 0.
9297 as_status
=$1; test $as_status -eq 0 && as_status
=1
9299 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9302 $as_echo "$as_me: error: $2" >&2
9303 as_fn_exit
$as_status
9307 # as_fn_set_status STATUS
9308 # -----------------------
9309 # Set $? to STATUS, without forking.
9313 } # as_fn_set_status
9317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9327 # Portably unset VAR.
9330 { eval $1=; unset $1;}
9332 as_unset
=as_fn_unset
9333 # as_fn_append VAR VALUE
9334 # ----------------------
9335 # Append the text in VALUE to the end of the definition contained in VAR. Take
9336 # advantage of any shell optimizations that allow amortized linear growth over
9337 # repeated appends, instead of the typical quadratic growth present in naive
9339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9340 eval 'as_fn_append ()
9351 # as_fn_arith ARG...
9352 # ------------------
9353 # Perform arithmetic evaluation on the ARGs, and store the result in the
9354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9355 # must be portable across $(()) and expr.
9356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9357 eval 'as_fn_arith ()
9364 as_val
=`expr "$@" || test $? -eq 1`
9369 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9370 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9376 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9377 as_basename
=basename
9382 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9388 as_me
=`$as_basename -- "$0" ||
9389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9390 X"$0" : 'X\(//\)$' \| \
9391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9393 sed '/^.*\/\([^/][^/]*\)\/*$/{
9407 # Avoid depending upon Character Ranges.
9408 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9409 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9410 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9411 as_cr_digits
='0123456789'
9412 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9414 ECHO_C
= ECHO_N
= ECHO_T
=
9415 case `echo -n x` in #(((((
9417 case `echo 'xy\c'` in
9418 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9420 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9427 rm -f conf$$ conf$$.exe conf$$.
file
9428 if test -d conf$$.dir
; then
9429 rm -f conf$$.dir
/conf$$.
file
9432 mkdir conf$$.dir
2>/dev
/null
9434 if (echo >conf$$.
file) 2>/dev
/null
; then
9435 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9437 # ... but there are two gotchas:
9438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9440 # In both cases, we have to default to `cp -pR'.
9441 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
9443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9451 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9452 rmdir conf$$.dir
2>/dev
/null
9457 # Create "$as_dir" as a directory, including parents if necessary.
9462 -*) as_dir
=.
/$as_dir;;
9464 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
9468 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9469 *) as_qdir
=$as_dir;;
9471 as_dirs
="'$as_qdir' $as_dirs"
9472 as_dir
=`$as_dirname -- "$as_dir" ||
9473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9474 X"$as_dir" : 'X\(//\)[^/]' \| \
9475 X"$as_dir" : 'X\(//\)$' \| \
9476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9477 $as_echo X"$as_dir" |
9478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9495 test -d "$as_dir" && break
9497 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9498 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
9502 if mkdir
-p .
2>/dev
/null
; then
9503 as_mkdir_p
='mkdir -p "$as_dir"'
9505 test -d .
/-p && rmdir .
/-p
9510 # as_fn_executable_p FILE
9511 # -----------------------
9512 # Test if FILE is an executable regular file.
9513 as_fn_executable_p
()
9515 test -f "$1" && test -x "$1"
9516 } # as_fn_executable_p
9518 as_executable_p
=as_fn_executable_p
9520 # Sed expression to map a string onto a valid CPP name.
9521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9523 # Sed expression to map a string onto a valid variable name.
9524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9528 ## ----------------------------------- ##
9529 ## Main body of $CONFIG_STATUS script. ##
9530 ## ----------------------------------- ##
9532 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9535 # Save the log message, to keep $0 and so on meaningful, and to
9536 # report actual input values of CONFIG_FILES etc. instead of their
9537 # values after options handling.
9539 This file was extended by $as_me, which was
9540 generated by GNU Autoconf 2.69. Invocation command line was
9542 CONFIG_FILES = $CONFIG_FILES
9543 CONFIG_HEADERS = $CONFIG_HEADERS
9544 CONFIG_LINKS = $CONFIG_LINKS
9545 CONFIG_COMMANDS = $CONFIG_COMMANDS
9548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9553 case $ac_config_files in *"
9554 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9557 case $ac_config_headers in *"
9558 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9563 # Files that config.status was made for.
9564 config_files="$ac_config_files"
9565 config_headers="$ac_config_headers"
9566 config_commands="$ac_config_commands"
9570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9572 \`$as_me' instantiates files and other configuration actions
9573 from templates according to the current configuration. Unless the files
9574 and actions are specified as TAGs, all are instantiated by default.
9576 Usage: $0 [OPTION]... [TAG]...
9578 -h, --help print this help, then exit
9579 -V, --version print version number and configuration settings, then exit
9580 --config print configuration, then exit
9581 -q, --quiet, --silent
9582 do not print progress messages
9583 -d, --debug don't remove temporary files
9584 --recheck update $as_me by reconfiguring in the same conditions
9585 --file=FILE[:TEMPLATE]
9586 instantiate the configuration file FILE
9587 --header=FILE[:TEMPLATE]
9588 instantiate the configuration header FILE
9590 Configuration files:
9593 Configuration headers:
9596 Configuration commands:
9599 Report bugs to the package provider."
9602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9603 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9606 configured by $0, generated by GNU Autoconf 2.69,
9607 with options \\"\$ac_cs_config\\"
9609 Copyright (C) 2012 Free Software Foundation, Inc.
9610 This config.status script is free software; the Free Software Foundation
9611 gives unlimited permission to copy, distribute and modify it."
9616 test -n "\$AWK" || AWK=awk
9619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9620 # The default lists apply if the user does not specify any file.
9626 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9627 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
9631 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
9643 # Handling of the options.
9644 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
9646 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
9647 $as_echo "$ac_cs_version"; exit ;;
9648 --config |
--confi |
--conf |
--con |
--co |
--c )
9649 $as_echo "$ac_cs_config"; exit ;;
9650 --debug |
--debu |
--deb |
--de |
--d |
-d )
9652 --file |
--fil |
--fi |
--f )
9655 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9656 '') as_fn_error $?
"missing file argument" ;;
9658 as_fn_append CONFIG_FILES
" '$ac_optarg'"
9659 ac_need_defaults
=false
;;
9660 --header |
--heade |
--head |
--hea )
9663 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9665 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
9666 ac_need_defaults
=false
;;
9668 # Conflict between --help and --header
9669 as_fn_error $?
"ambiguous option: \`$1'
9670 Try \`$0 --help' for more information.";;
9671 --help |
--hel |
-h )
9672 $as_echo "$ac_cs_usage"; exit ;;
9673 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
9674 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
9678 -*) as_fn_error $?
"unrecognized option: \`$1'
9679 Try \`$0 --help' for more information." ;;
9681 *) as_fn_append ac_config_targets
" $1"
9682 ac_need_defaults
=false
;;
9688 ac_configure_extra_args
=
9690 if $ac_cs_silent; then
9692 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9697 if \$ac_cs_recheck; then
9698 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9701 CONFIG_SHELL='$SHELL'
9707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9712 ## Running $as_me. ##
9718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9728 # Handling of arguments.
9729 for ac_config_target
in $ac_config_targets
9731 case $ac_config_target in
9732 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9733 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
9734 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
9735 "pcap-filter.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-filter.manmisc" ;;
9736 "pcap-linktype.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-linktype.manmisc" ;;
9737 "pcap-tstamp.manmisc") CONFIG_FILES
="$CONFIG_FILES pcap-tstamp.manmisc" ;;
9738 "pcap-savefile.manfile") CONFIG_FILES
="$CONFIG_FILES pcap-savefile.manfile" ;;
9739 "pcap.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap.3pcap" ;;
9740 "pcap_compile.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_compile.3pcap" ;;
9741 "pcap_datalink.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_datalink.3pcap" ;;
9742 "pcap_dump_open.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_dump_open.3pcap" ;;
9743 "pcap_get_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_get_tstamp_precision.3pcap" ;;
9744 "pcap_list_datalinks.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
9745 "pcap_list_tstamp_types.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
9746 "pcap_open_dead.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_dead.3pcap" ;;
9747 "pcap_open_offline.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_open_offline.3pcap" ;;
9748 "pcap_set_tstamp_precision.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_precision.3pcap" ;;
9749 "pcap_set_tstamp_type.3pcap") CONFIG_FILES
="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
9750 "rpcapd/Makefile") CONFIG_FILES
="$CONFIG_FILES rpcapd/Makefile" ;;
9752 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9757 # If the user did not use the arguments to specify the items to instantiate,
9758 # then the envvar interface is used. Set only those that are not.
9759 # We use the long form for the default assignment because of an extremely
9760 # bizarre bug on SunOS 4.1.3.
9761 if $ac_need_defaults; then
9762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9767 # Have a temporary directory for convenience. Make it in the build tree
9768 # simply because there is no reason against having it here, and in addition,
9769 # creating and moving files from /tmp can sometimes cause problems.
9770 # Hook for its removal unless debugging.
9771 # Note that there is a small window in which the directory will not be cleaned:
9772 # after its creation but before its name has been assigned to `$tmp'.
9776 trap 'exit_status=$?
9778 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9780 trap 'as_fn_exit 1' 1 2 13 15
9782 # Create a (secure) tmp directory for tmp files.
9785 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9789 tmp
=.
/conf$$
-$RANDOM
9790 (umask 077 && mkdir
"$tmp")
9791 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
9794 # Set up the scripts for CONFIG_FILES section.
9795 # No need to generate them if there are no CONFIG_FILES.
9796 # This happens for instance with `./config.status config.h'.
9797 if test -n "$CONFIG_FILES"; then
9800 ac_cr
=`echo X | tr X '\015'`
9801 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9802 # But we know of no other shell where ac_cr would be empty at this
9803 # point, so we can use a bashism as a fallback.
9804 if test "x$ac_cr" = x
; then
9805 eval ac_cr
=\$
\'\\r
\'
9807 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9808 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9814 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9819 echo "cat >conf$$subs.awk <<_ACEOF" &&
9820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9823 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9826 for ac_last_try in false false false false false :; do
9827 . ./conf$$subs.sh ||
9828 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9830 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
9831 if test $ac_delim_n = $ac_delim_num; then
9833 elif $ac_last_try; then
9834 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
9836 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9842 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
9846 s/^/S["/; s
/!.
*/"]=/
9856 s/\(.\{148\}\)..*/\1/
9858 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
9863 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9870 s/\(.\{148\}\)..*/\1/
9872 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
9876 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
9881 ' <conf$$subs.awk | sed '
9886 ' >>$CONFIG_STATUS || ac_write_fail=1
9887 rm -f conf$$subs.awk
9888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9890 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
9891 for (key in S) S_is_set[key] = 1
9897 nfields = split(line, field, "@
")
9899 len = length(field[1])
9900 for (i = 2; i < nfields; i++) {
9902 keylen = length(key)
9903 if (S_is_set[key]) {
9905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9906 len += length(value) + length(field[++i])
9917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9918 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9919 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
9922 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
9923 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
9926 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9927 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
9928 # trailing colons and then remove the whole line if VPATH becomes empty
9929 # (actually we leave an empty line to preserve line numbers).
9930 if test "x
$srcdir" = x.; then
9931 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9950 fi # test -n "$CONFIG_FILES"
9952 # Set up the scripts for CONFIG_HEADERS section.
9953 # No need to generate them if there are no CONFIG_HEADERS.
9954 # This happens for instance with `./config.status Makefile'.
9955 if test -n "$CONFIG_HEADERS"; then
9956 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
9960 # Transform confdefs.h into an awk script `defines.awk', embedded as
9961 # here-document in config.status, that substitutes the proper values into
9962 # config.h.in to produce config.h.
9964 # Create a delimiter string that does not exist in confdefs.h, to ease
9965 # handling of long lines.
9967 for ac_last_try in false false :; do
9968 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
9969 if test -z "$ac_tt"; then
9971 elif $ac_last_try; then
9972 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
9974 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
9978 # For the awk script, D is an array of macro values keyed by name,
9979 # likewise P contains macro parameters if any. Preserve backslash
9980 # newline sequences.
9982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9984 s/.\{148\}/&'"$ac_delim"'/g
9987 s/^[ ]*#[ ]*define[ ][ ]*/ /
9994 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
9996 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10001 D["\
1"]=" \
3\\\\\\n
"\\/p
10003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10008 s/.\{148\}/&'"$ac_delim"'/g
10013 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10016 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10018 ' <confdefs.h | sed '
10019 s/'"$ac_delim"'/"\\\
10020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10023 for (key in D) D_is_set[key] = 1
10026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10028 split(line, arg, " ")
10029 if (arg[1] == "#") {
10033 defundef
= substr
(arg
[1], 2)
10036 split(mac1
, mac2
, "(") #)
10038 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10039 if (D_is_set
[macro
]) {
10040 # Preserve the white space surrounding the "#".
10041 print prefix
"define", macro P
[macro
] D
[macro
]
10044 # Replace #undef with comments. This is necessary, for example,
10045 # in the case of _POSIX_SOURCE, which is predefined and required
10046 # on some systems where configure will not decide to define it.
10047 if (defundef
== "undef") {
10048 print
"/*", prefix defundef
, macro
, "*/"
10056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10057 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10058 fi # test -n "$CONFIG_HEADERS"
10061 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10066 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10068 case $ac_mode$ac_tag in
10070 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10071 :[FH
]-) ac_tag
=-:-;;
10072 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10089 -) ac_f
="$ac_tmp/stdin";;
10090 *) # Look for the file first in the build tree, then in the source tree
10091 # (if the path is not absolute). The absolute path cannot be DOS-style,
10092 # because $ac_f cannot contain `:'.
10096 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10098 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10100 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10101 as_fn_append ac_file_inputs
" '$ac_f'"
10104 # Let's still pretend it is `configure' which instantiates (i.e., don't
10105 # use $as_me), people would be surprised to read:
10106 # /* config.h. Generated by config.status. */
10107 configure_input
='Generated from '`
10108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10110 if test x
"$ac_file" != x-
; then
10111 configure_input
="$ac_file. $configure_input"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10113 $as_echo "$as_me: creating $ac_file" >&6;}
10115 # Neutralize special characters interpreted by sed in replacement strings.
10116 case $configure_input in #(
10117 *\
&* |
*\|
* |
*\\* )
10118 ac_sed_conf_input
=`$as_echo "$configure_input" |
10119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10120 *) ac_sed_conf_input
=$configure_input;;
10124 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10125 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10130 ac_dir
=`$as_dirname -- "$ac_file" ||
10131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10132 X"$ac_file" : 'X\(//\)[^/]' \| \
10133 X"$ac_file" : 'X\(//\)$' \| \
10134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10135 $as_echo X"$ac_file" |
10136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10140 /^X\(\/\/\)[^/].*/{
10153 as_dir
="$ac_dir"; as_fn_mkdir_p
10157 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10159 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10160 # A ".." for each directory in $ac_dir_suffix.
10161 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10162 case $ac_top_builddir_sub in
10163 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10164 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10167 ac_abs_top_builddir
=$ac_pwd
10168 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10169 # for backward compatibility:
10170 ac_top_builddir
=$ac_top_build_prefix
10173 .
) # We are building in place.
10175 ac_top_srcdir
=$ac_top_builddir_sub
10176 ac_abs_top_srcdir
=$ac_pwd ;;
10177 [\\/]* | ?
:[\\/]* ) # Absolute name.
10178 ac_srcdir
=$srcdir$ac_dir_suffix;
10179 ac_top_srcdir
=$srcdir
10180 ac_abs_top_srcdir
=$srcdir ;;
10181 *) # Relative name.
10182 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10183 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10184 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10186 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10196 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10197 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10202 # If the template does not know about datarootdir, expand it.
10203 # FIXME: This hack should be removed a few years after 2.60.
10204 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10216 *datarootdir
*) ac_datarootdir_seen
=yes;;
10217 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10219 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10222 ac_datarootdir_hack='
10223 s&@datadir@&$datadir&g
10224 s&@docdir@&$docdir&g
10225 s&@infodir@&$infodir&g
10226 s&@localedir@&$localedir&g
10227 s&@mandir@&$mandir&g
10228 s&\\\${datarootdir}&$datarootdir&g' ;;
10232 # Neutralize VPATH when `$srcdir' = `.'.
10233 # Shell code in configure.ac might set extrasub.
10234 # FIXME: do we really want to maintain this feature?
10235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10236 ac_sed_extra="$ac_vpsub
10239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10241 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10242 s|@configure_input@|
$ac_sed_conf_input|
;t t
10243 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10244 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10245 s
&@srcdir@
&$ac_srcdir&;t t
10246 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10247 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10248 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10249 s
&@builddir@
&$ac_builddir&;t t
10250 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10251 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10252 s
&@INSTALL@
&$ac_INSTALL&;t t
10253 $ac_datarootdir_hack
10255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10256 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10259 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10261 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10263 which seems to be undefined. Please make sure it is defined" >&5
10264 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10265 which seems to be undefined. Please make sure it is defined" >&2;}
10267 rm -f "$ac_tmp/stdin"
10269 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10270 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10278 if test x"$ac_file" != x-; then
10280 $as_echo "/* $configure_input */" \
10281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10282 } >"$ac_tmp/config.h" \
10283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10284 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10286 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10289 mv "$ac_tmp/config.h" "$ac_file" \
10290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10293 $as_echo "/* $configure_input */" \
10294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10295 || as_fn_error $? "could not create -" "$LINENO" 5
10299 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10300 $as_echo "$as_me: executing $ac_file commands" >&6;}
10305 case $ac_file$ac_mode in
10306 "default-1":C) if test -f .devel; then
10307 echo timestamp > stamp-h
10308 cat Makefile-devel-adds >> Makefile
10318 ac_clean_files=$ac_clean_files_save
10320 test $ac_write_fail = 0 ||
10321 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10324 # configure is writing to config.log, and then calls config.status.
10325 # config.status does its own redirection, appending to config.log.
10326 # Unfortunately, on DOS this fails, as config.log is still kept open
10327 # by configure, so config.status won't be able to
write to it
; its
10328 # output is simply discarded. So we exec the FD to /dev/null,
10329 # effectively closing config.log, so it can be properly (re)opened and
10330 # appended to by config.status. When coming back to configure, we
10331 # need to make the FD available again.
10332 if test "$no_create" != yes; then
10334 ac_config_status_args
=
10335 test "$silent" = yes &&
10336 ac_config_status_args
="$ac_config_status_args --quiet"
10338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10341 # would make configure fail if this is the last instruction.
10342 $ac_cs_success || as_fn_exit
1
10344 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10346 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}