2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
233 $0: including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error STATUS ERROR [LINENO LOG_FD]
361 # ----------------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with STATUS, using 1 if that was 0.
367 as_status=$1; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372 $as_echo "$as_me: error: $2" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 test -n "$DJDIR" || exec 7<&0 </dev/null
534 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
535 # so uname gets run too.
536 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 ac_default_prefix=/usr/local
543 ac_config_libobj_dir=.
550 # Identity of this package.
558 ac_unique_file="pcap.c"
559 # Factoring default headers for most tests.
560 ac_includes_default="\
562 #ifdef HAVE_SYS_TYPES_H
563 # include <sys/types.h>
565 #ifdef HAVE_SYS_STAT_H
566 # include <sys/stat.h>
572 # ifdef HAVE_STDLIB_H
577 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
582 #ifdef HAVE_STRINGS_H
583 # include <strings.h>
585 #ifdef HAVE_INTTYPES_H
586 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
606 PCAP_SUPPORT_NETFILTER
628 HAVE_LINUX_TPACKET_AUXDATA
680 program_transform_name
693 enable_option_checking
717 ac_precious_vars='build_alias
728 # Initialize some variables set by options.
730 ac_init_version=false
731 ac_unrecognized_opts=
733 # The variables have the same names as the options, with
734 # dashes changed to underlines.
742 program_transform_name=s,x,x,
750 # Installation directory options.
751 # These are left unexpanded so users can "make install exec_prefix=/foo"
752 # and all the variables that are supposed to be based on exec_prefix
753 # by default will actually change.
754 # Use braces instead of parens because sh, perl, etc. also accept them.
755 # (The list follows the same order as the GNU Coding Standards.)
756 bindir='${exec_prefix}/bin'
757 sbindir='${exec_prefix}/sbin'
758 libexecdir='${exec_prefix}/libexec'
759 datarootdir='${prefix}/share'
760 datadir='${datarootdir}'
761 sysconfdir='${prefix}/etc'
762 sharedstatedir='${prefix}/com'
763 localstatedir='${prefix}/var'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE}'
767 infodir='${datarootdir}/info'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
782 eval $ac_prev=\$ac_option
788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
845 eval enable_$ac_useropt=no ;;
847 -docdir | --docdir | --docdi | --doc | --do)
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 -enable-* | --enable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
871 eval enable_$ac_useropt=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
886 -help | --help | --hel | --he | -h)
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 # Obsolete; use --without-fp.
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1035 -site=* | --site=* | --sit=*)
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1062 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid package name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1075 eval with_$ac_useropt=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval with_$ac_useropt=no ;;
1094 # Obsolete; use --with-x.
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1112 Try \`$0 --help' for more information"
1116 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error $? "missing argument to $ac_option"
1141 if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1144 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1145 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149 # Check all directory arguments for consistency.
1150 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153 libdir localedir mandir
1155 eval ac_val=\$$ac_var
1156 # Remove trailing slashes.
1159 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\$ac_val;;
1162 # Be sure to have absolute directory names.
1164 [\\/$]* | ?:[\\/]* ) continue;;
1165 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1170 # There might be people who depend on the old broken behavior: `$host'
1171 # used to hold the argument of --host etc.
1172 # FIXME: To remove some day.
1175 target=$target_alias
1177 # FIXME: To remove some day.
1178 if test "x$host_alias" != x; then
1179 if test "x$build_alias" = x; then
1180 cross_compiling=maybe
1181 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1182 If a cross compiler is detected then cross compile mode will be used" >&2
1183 elif test "x$build_alias" != "x$host_alias"; then
1189 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1191 test "$silent" = yes && exec 6>/dev/null
1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195 ac_ls_di=`ls -di .` &&
1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error $? "working directory cannot be determined"
1198 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199 as_fn_error $? "pwd does not report name of working directory"
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211 $as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1234 ac_srcdir_defaulted=no
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1244 # When building in place, set srcdir=.
1245 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 # Remove unnecessary trailing slashes from srcdir.
1249 # Double slashes in file names in object file debugging info
1250 # mess up M-x gdb in Emacs.
1252 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 for ac_var in $ac_precious_vars; do
1255 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_env_${ac_var}_value=\$${ac_var}
1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1262 # Report the --help message.
1264 if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1268 \`configure' configures this package to adapt to many kinds of systems.
1270 Usage: $0 [OPTION]... [VAR=VALUE]...
1272 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273 VAR=VALUE. See below for descriptions of some of the useful variables.
1275 Defaults for the options are specified in brackets.
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
1282 -q, --quiet, --silent do not print \`checking ...' messages
1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288 Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
1290 [$ac_default_prefix]
1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 By default, \`make install' will install all the files in
1295 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297 for instance \`--prefix=\$HOME'.
1299 For better control, use the options below.
1301 Fine tuning of the installation directories:
1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 --target=TARGET configure for building compilers for TARGET [HOST]
1332 if test -n "$ac_init_help"; then
1337 --disable-option-checking ignore unrecognized --enable/--with options
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-largefile omit support for large files
1341 --disable-protochain disable \"protochain\" insn
1342 --enable-ipv6 build IPv6-capable version [default=yes, if
1343 getaddrinfo available]
1344 --enable-optimizer-dbg build optimizer debugging code
1345 --enable-yydebug build parser debugging code
1346 --disable-universal don't build universal on OS X
1347 --enable-bluetooth enable Bluetooth support [default=yes, if support
1349 --enable-canusb enable canusb support [default=yes, if support
1352 --enable-can enable CAN support [default=yes, if support
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --without-gcc don't use gcc
1359 --with-sita include SITA support
1360 --with-pcap=TYPE use packet capture TYPE
1361 --without-libnl disable libnl support [default=yes, on Linux, if
1363 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1364 default="yes" on BSD and Linux if present]
1365 --with-dag-includes=DIR Endace DAG include directory
1366 --with-dag-libraries=DIR
1367 Endace DAG library directory
1368 --with-septel[=DIR] include Septel support (located in directory DIR, if
1369 supplied). [default=yes, on Linux, if present]
1370 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1371 default="yes" on BSD and Linux if present]
1372 --with-snf-includes=DIR Myricom SNF include directory
1373 --with-snf-libraries=DIR
1374 Myricom SNF library directory
1375 --without-flex don't use flex
1376 --without-bison don't use bison
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1391 Report bugs to the package provider.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" ||
1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1421 .) # We are building in place.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1455 generated by GNU Autoconf 2.67
1457 Copyright (C) 2010 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 rm -f conftest.$ac_objext
1475 if { { ac_try="$ac_compile"
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_compile") 2>conftest.err
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } && {
1491 test -z "$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1493 } && test -s conftest.$ac_objext; then :
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1502 as_fn_set_status $ac_retval
1504 } # ac_fn_c_try_compile
1506 # ac_fn_c_try_cpp LINENO
1507 # ----------------------
1508 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } > conftest.i && {
1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1533 $as_echo "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 as_fn_set_status $ac_retval
1543 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1544 # -------------------------------------------------------
1545 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1546 # the include files in INCLUDES and setting the cache variable VAR
1548 ac_fn_c_check_header_mongrel ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if eval "test \"\${$3+set}\"" = set; then :
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1553 $as_echo_n "checking for $2... " >&6; }
1554 if eval "test \"\${$3+set}\"" = set; then :
1555 $as_echo_n "(cached) " >&6
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1559 $as_echo "$ac_res" >&6; }
1561 # Is the header compilable?
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1563 $as_echo_n "checking $2 usability... " >&6; }
1564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1565 /* end confdefs.h. */
1569 if ac_fn_c_try_compile "$LINENO"; then :
1570 ac_header_compiler=yes
1572 ac_header_compiler=no
1574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1576 $as_echo "$ac_header_compiler" >&6; }
1578 # Is the header present?
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1580 $as_echo_n "checking $2 presence... " >&6; }
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1585 if ac_fn_c_try_cpp "$LINENO"; then :
1586 ac_header_preproc=yes
1588 ac_header_preproc=no
1590 rm -f conftest.err conftest.i conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1592 $as_echo "$ac_header_preproc" >&6; }
1594 # So? What about this header?
1595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1598 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1604 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1606 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1608 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1610 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval "test \"\${$3+set}\"" = set; then :
1618 $as_echo_n "(cached) " >&6
1620 eval "$3=\$ac_header_compiler"
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 } # ac_fn_c_check_header_mongrel
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=$ac_status
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 as_fn_set_status $ac_retval
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval "test \"\${$3+set}\"" = set; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1704 # -------------------------------------------
1705 # Tests whether TYPE exists after having included INCLUDES, setting cache
1706 # variable VAR accordingly.
1707 ac_fn_c_check_type ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval "test \"\${$3+set}\"" = set; then :
1713 $as_echo_n "(cached) " >&6
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1741 if ac_fn_c_try_compile "$LINENO"; then :
1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755 } # ac_fn_c_check_type
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 $as_test_x conftest$ac_exeext
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795 # interfere with the next link command; also delete a directory that is
1796 # left behind by Apple's compiler. We do this before executing the actions.
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_link
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1818 #define $2 innocuous_$2
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (); below.
1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823 <limits.h> exists even on freestanding compilers. */
1826 # include <limits.h>
1828 # include <assert.h>
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1855 if ac_fn_c_try_link "$LINENO"; then :
1860 rm -f core conftest.err conftest.$ac_objext \
1861 conftest$ac_exeext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 } # ac_fn_c_check_func
1870 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1871 # ---------------------------------------------
1872 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1874 ac_fn_c_check_decl ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 as_decl_name=`echo $2|sed 's/ *(.*//'`
1878 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1880 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1881 if eval "test \"\${$3+set}\"" = set; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1890 #ifndef $as_decl_name
1892 (void) $as_decl_use;
1894 (void) $as_decl_name;
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 } # ac_fn_c_check_decl
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1919 It was created by $as_me, which was
1920 generated by GNU Autoconf 2.67. Invocation command line was
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1980 ac_must_keep_next=false
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 -* ) ac_must_keep_next=true ;;
2012 as_fn_append ac_configure_args " '$ac_arg'"
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2030 $as_echo "## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##"
2034 # The following way of writing the cache mishandles newlines in values,
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 _ | IFS | as_nl) ;; #(
2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047 *) { eval $ac_var=; unset $ac_var;} ;;
2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
2055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 $as_echo "## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##"
2070 for ac_var in $ac_subst_vars
2072 eval ac_val=\$$ac_var
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 $as_echo "$ac_var='\''$ac_val'\''"
2080 if test -n "$ac_subst_files"; then
2081 $as_echo "## ------------------- ##
2082 ## File substitutions. ##
2083 ## ------------------- ##"
2085 for ac_var in $ac_subst_files
2087 eval ac_val=\$$ac_var
2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 $as_echo "$ac_var='\''$ac_val'\''"
2096 if test -s confdefs.h; then
2097 $as_echo "## ----------- ##
2104 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2112 for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2118 rm -f -r conftest* confdefs.h
2120 $as_echo "/* confdefs.h */" > confdefs.h
2122 # Predefined preprocessor variables.
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_NAME "$PACKAGE_NAME"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_STRING "$PACKAGE_STRING"
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_URL "$PACKAGE_URL"
2149 # Let the site file select an alternate cache file if it wants to.
2150 # Prefer an explicitly selected file to automatically selected ones.
2153 if test -n "$CONFIG_SITE"; then
2154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177 as_fn_error $? "failed to load site script $ac_site_file
2178 See \`config.log' for more details" "$LINENO" 5 ; }
2182 if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 # Check that the precious variables saved in the cache have kept the same
2201 ac_cache_corrupted=false
2202 for ac_var in $ac_precious_vars; do
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
2207 case $ac_old_set,$ac_new_set in
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 if $ac_cache_corrupted; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256 ## -------------------- ##
2257 ## Main body of script. ##
2258 ## -------------------- ##
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 if test -f "$ac_dir/install-sh"; then
2272 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 elif test -f "$ac_dir/install.sh"; then
2276 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 elif test -f "$ac_dir/shtool"; then
2280 ac_install_sh="$ac_aux_dir/shtool install -c"
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2322 ac_save_IFS=$IFS; IFS='-'
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336 $as_echo_n "checking host system type... " >&6; }
2337 if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349 $as_echo "$ac_cv_host" >&6; }
2352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2355 ac_save_IFS=$IFS; IFS='-'
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369 $as_echo_n "checking target system type... " >&6; }
2370 if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382 $as_echo "$ac_cv_target" >&6; }
2383 case $ac_cv_target in
2385 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2387 target=$ac_cv_target
2388 ac_save_IFS=$IFS; IFS='-'
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2401 # The aliases save the names the user supplied, while $host etc.
2402 # will get canonicalized.
2403 test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2406 program_prefix=${target_alias}-
2415 # Check whether --with-gcc was given.
2416 if test "${with_gcc+set}" = set; then :
2422 if test "${srcdir}" != "." ; then
2423 V_INCLS="-I\$(srcdir)"
2425 if test "${CFLAGS+set}" = set; then
2426 LBL_CFLAGS="$CFLAGS"
2428 if test -z "$CC" ; then
2432 # Extract the first word of "shlicc2", so it can be a program name with args.
2433 set dummy shlicc2; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_SHLICC2+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
2439 if test -n "$SHLICC2"; then
2440 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_SHLICC2="yes"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
2460 SHLICC2=$ac_cv_prog_SHLICC2
2461 if test -n "$SHLICC2"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5
2463 $as_echo "$SHLICC2" >&6; }
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2470 if test $SHLICC2 = yes ; then
2477 if test -z "$CC" -a "$with_gcc" = no ; then
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2518 $as_echo "$CC" >&6; }
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 $as_echo "no" >&6; }
2526 if test -z "$ac_cv_prog_CC"; then
2528 # Extract the first word of "gcc", so it can be a program name with args.
2529 set dummy gcc; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2535 if test -n "$ac_ct_CC"; then
2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_ac_ct_CC="gcc"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2556 if test -n "$ac_ct_CC"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2558 $as_echo "$ac_ct_CC" >&6; }
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2564 if test "x$ac_ct_CC" = x; then
2567 case $cross_compiling:$ac_tool_warned in
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571 ac_tool_warned=yes ;;
2579 if test -z "$CC"; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}cc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_CC+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_CC="${ac_tool_prefix}cc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611 $as_echo "$CC" >&6; }
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2620 if test -z "$CC"; then
2621 # Extract the first word of "cc", so it can be a program name with args.
2622 set dummy cc; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if test "${ac_cv_prog_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2640 ac_prog_rejected=yes
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test $ac_prog_rejected = yes; then
2652 # We found a bogon in the path, so make sure we never use it.
2653 set dummy $ac_cv_prog_CC
2655 if test $# != 0; then
2656 # We chose a different compiler from the bogus one.
2657 # However, it has the same basename, so the bogon will be chosen
2658 # first if we set CC to just the basename; use the full file name.
2660 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$CC"; then
2677 if test -n "$ac_tool_prefix"; then
2678 for ac_prog in cl.exe
2680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$CC" && break
2720 if test -z "$CC"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy $ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752 if test -n "$ac_ct_CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754 $as_echo "$ac_ct_CC" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$ac_ct_CC" && break
2764 if test "x$ac_ct_CC" = x; then
2767 case $cross_compiling:$ac_tool_warned in
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771 ac_tool_warned=yes ;;
2780 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782 as_fn_error $? "no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details" "$LINENO" 5 ; }
2785 # Provide some information about the compiler.
2786 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2789 for ac_option in --version -v -V -qversion; do
2790 { { ac_try="$ac_compiler $ac_option >&5"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2799 if test -s conftest.err; then
2801 ... rest of stderr output deleted ...
2802 10q' conftest.err >conftest.er1
2803 cat conftest.er1 >&5
2805 rm -f conftest.er1 conftest.err
2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807 test $ac_status = 0; }
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2821 ac_clean_files_save=$ac_clean_files
2822 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2823 # Try to create an executable without -o first, disregard a.out.
2824 # It will help us diagnose broken compilers, and finding out an intuition
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2827 $as_echo_n "checking whether the C compiler works... " >&6; }
2828 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2830 # The possible output files:
2831 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2834 for ac_file in $ac_files
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2838 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2843 if { { ac_try="$ac_link_default"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849 $as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_link_default") 2>&5
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; then :
2854 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2855 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2856 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2857 # so that the user can short-circuit this test for compilers unknown to
2859 for ac_file in $ac_files ''
2861 test -f "$ac_file" || continue
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2866 # We found the default executable, but exeext='' is most
2870 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874 # We set ac_cv_exeext here because the later test for it is not
2875 # safe: cross compilers may not add the suffix if given an `-o'
2876 # argument, so we may need to know it at that point already.
2877 # Even if this section looks crufty: it has the advantage of
2884 test "$ac_cv_exeext" = no && ac_cv_exeext=
2889 if test -z "$ac_file"; then :
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 $as_echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error 77 "C compiler cannot create executables
2898 See \`config.log' for more details" "$LINENO" 5 ; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2901 $as_echo "yes" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2904 $as_echo_n "checking for C compiler default output file name... " >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2906 $as_echo "$ac_file" >&6; }
2907 ac_exeext=$ac_cv_exeext
2909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2912 $as_echo_n "checking for suffix of executables... " >&6; }
2913 if { { ac_try="$ac_link"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link") 2>&5
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }; then :
2924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2926 # work properly (i.e., refer to `conftest.exe'), while it won't with
2928 for ac_file in conftest.exe conftest conftest.*; do
2929 test -f "$ac_file" || continue
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2941 See \`config.log' for more details" "$LINENO" 5 ; }
2943 rm -f conftest conftest$ac_cv_exeext
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2945 $as_echo "$ac_cv_exeext" >&6; }
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951 /* end confdefs.h. */
2956 FILE *f = fopen ("conftest.out", "w");
2957 return ferror (f) || fclose (f) != 0;
2963 ac_clean_files="$ac_clean_files conftest.out"
2964 # Check that the compiler produces executables we can run. If not, either
2965 # the compiler is broken, or we cross compile.
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2967 $as_echo_n "checking whether we are cross compiling... " >&6; }
2968 if test "$cross_compiling" != yes; then
2969 { { ac_try="$ac_link"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_link") 2>&5
2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2979 test $ac_status = 0; }
2980 if { ac_try='./conftest$ac_cv_exeext'
2981 { { case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_try") 2>&5
2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2990 test $ac_status = 0; }; }; then
2993 if test "$cross_compiling" = maybe; then
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998 as_fn_error $? "cannot run C compiled programs.
2999 If you meant to cross compile, use \`--host'.
3000 See \`config.log' for more details" "$LINENO" 5 ; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3005 $as_echo "$cross_compiling" >&6; }
3007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3008 ac_clean_files=$ac_clean_files_save
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3010 $as_echo_n "checking for suffix of object files... " >&6; }
3011 if test "${ac_cv_objext+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3025 rm -f conftest.o conftest.obj
3026 if { { ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_compile") 2>&5
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; then :
3037 for ac_file in conftest.o conftest.obj conftest.*; do
3038 test -f "$ac_file" || continue;
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3046 $as_echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3051 as_fn_error $? "cannot compute suffix of object files: cannot compile
3052 See \`config.log' for more details" "$LINENO" 5 ; }
3054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3057 $as_echo "$ac_cv_objext" >&6; }
3058 OBJEXT=$ac_cv_objext
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3062 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3079 if ac_fn_c_try_compile "$LINENO"; then :
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3090 if test $ac_compiler_gnu = yes; then
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3117 if ac_fn_c_try_compile "$LINENO"; then :
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3132 if ac_fn_c_try_compile "$LINENO"; then :
3135 ac_c_werror_flag=$ac_save_c_werror_flag
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3148 if ac_fn_c_try_compile "$LINENO"; then :
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 ac_c_werror_flag=$ac_save_c_werror_flag
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3159 $as_echo "$ac_cv_prog_cc_g" >&6; }
3160 if test "$ac_test_CFLAGS" = set; then
3161 CFLAGS=$ac_save_CFLAGS
3162 elif test $ac_cv_prog_cc_g = yes; then
3163 if test "$GCC" = yes; then
3169 if test "$GCC" = yes; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3180 ac_cv_prog_cc_c89=no
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3186 #include <sys/types.h>
3187 #include <sys/stat.h>
3188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3189 struct buf { int x; };
3190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3191 static char *e (p, i)
3197 static char *f (char * (*g) (char **, int), char **p, ...)
3202 s = g (p, va_arg (v,int));
3207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3208 function prototypes and stuff, but not '\xHH' hex character constants.
3209 These don't provoke an error unfortunately, instead are silently treated
3210 as 'x'. The following induces an error, until -std is added to get
3211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3212 array size at least. It's necessary to write '\x00'==0 to get something
3213 that's true only with -std. */
3214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3217 inside strings and character constants. */
3219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3221 int test (int i, double x);
3222 struct s1 {int (*f) (int a);};
3223 struct s2 {int (*f) (double a);};
3224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3238 CC="$ac_save_CC $ac_arg"
3239 if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_cv_prog_cc_c89=$ac_arg
3242 rm -f core conftest.err conftest.$ac_objext
3243 test "x$ac_cv_prog_cc_c89" != "xno" && break
3245 rm -f conftest.$ac_ext
3250 case "x$ac_cv_prog_cc_c89" in
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3253 $as_echo "none needed" >&6; } ;;
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3256 $as_echo "unsupported" >&6; } ;;
3258 CC="$CC $ac_cv_prog_cc_c89"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3262 if test "x$ac_cv_prog_cc_c89" != xno; then :
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 if test "$GCC" = yes ; then
3277 if test "$SHLICC2" = yes ; then
3278 ac_cv_lbl_gcc_vers=2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
3282 $as_echo_n "checking gcc version... " >&6; }
3283 if test "${ac_cv_lbl_gcc_vers+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3286 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
3287 sed -e '/^gcc version /!d' \
3288 -e 's/^gcc version //' \
3289 -e 's/ .*//' -e 's/^[^0-9]*//' \
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_vers" >&5
3294 $as_echo "$ac_cv_lbl_gcc_vers" >&6; }
3295 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that $CC handles ansi prototypes" >&5
3301 $as_echo_n "checking that $CC handles ansi prototypes... " >&6; }
3302 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308 #include <sys/types.h>
3312 int frob(int, char *)
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_lbl_cc_ansi_prototypes=yes
3320 ac_cv_lbl_cc_ansi_prototypes=no
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3326 $as_echo "$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3327 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3332 $as_echo_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... " >&6; }
3333 savedcflags="$CFLAGS"
3334 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3335 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340 #include <sys/types.h>
3344 int frob(int, char *)
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_lbl_cc_hpux_cc_aa=yes
3352 ac_cv_lbl_cc_hpux_cc_aa=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3358 $as_echo "$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3359 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3360 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3362 CFLAGS="$savedcflags"
3363 V_CCOPT="-Aa $V_CCOPT"
3365 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3371 $as_echo_n "checking for ansi mode in DEC compiler ($CC -std1)... " >&6; }
3372 savedcflags="$CFLAGS"
3374 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3379 #include <sys/types.h>
3383 int frob(int, char *)
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_lbl_cc_osf1_cc_std1=yes
3391 ac_cv_lbl_cc_osf1_cc_std1=no
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3397 $as_echo "$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3398 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3399 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3401 CFLAGS="$savedcflags"
3402 V_CCOPT="-std1 $V_CCOPT"
3406 as_fn_error $? "see the INSTALL doc for more info" "$LINENO" 5
3410 V_INCLS="$V_INCLS -I/usr/local/include"
3411 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3416 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3421 # Presumed to be DEC OSF/1, Digital UNIX, or
3424 V_CCOPT="$V_CCOPT -g3"
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5
3429 $as_echo_n "checking that Ultrix $CC hacks const in prototypes... " >&6; }
3430 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435 #include <sys/types.h>
3439 struct a { int b; };
3440 void c(const struct a *)
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_lbl_cc_const_proto=yes
3448 ac_cv_lbl_cc_const_proto=no
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5
3454 $as_echo "$ac_cv_lbl_cc_const_proto" >&6; }
3455 if test $ac_cv_lbl_cc_const_proto = no ; then
3457 $as_echo "#define const /**/" >>confdefs.h
3465 if test "$GCC" = yes ; then
3467 # On platforms where we build a shared library:
3469 # add options to generate position-independent code,
3470 # if necessary (it's the default in AIX and Darwin/OS X);
3472 # define option to set the soname of the shared library,
3473 # if the OS supports that;
3475 # add options to specify, at link time, a directory to
3476 # add to the run-time search path, if that's necessary.
3478 V_SHLIB_CMD="\$(CC)"
3479 V_SHLIB_OPT="-shared"
3485 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3487 # Platforms where the linker is the GNU linker
3488 # or accepts command-line arguments like
3489 # those the GNU linker accepts.
3491 # Some instruction sets require -fPIC on some
3492 # operating systems. Check for them. If you
3493 # have a combination that requires it, add it
3508 V_CCOPT="$V_CCOPT $PIC_OPT"
3509 V_SONAME_OPT="-Wl,-soname,"
3510 V_RPATH_OPT="-Wl,-rpath,"
3514 V_CCOPT="$V_CCOPT -fpic"
3516 # XXX - this assumes GCC is using the HP linker,
3517 # rather than the GNU linker, and that the "+h"
3518 # option is used on all HP-UX platforms, both .sl
3521 V_SONAME_OPT="-Wl,+h,"
3523 # By default, directories specifed with -L
3524 # are added to the run-time search path, so
3525 # we don't add them in pcap-config.
3530 V_CCOPT="$V_CCOPT -fpic"
3532 # XXX - this assumes GCC is using the Sun linker,
3533 # rather than the GNU linker.
3535 V_SONAME_OPT="-Wl,-h,"
3536 V_RPATH_OPT="-Wl,-R,"
3541 # Set the appropriate compiler flags and, on platforms
3542 # where we build a shared library:
3544 # add options to generate position-independent code,
3545 # if necessary (it's the default in Darwin/OS X);
3547 # if we generate ".so" shared libraries, define the
3548 # appropriate options for building the shared library;
3550 # add options to specify, at link time, a directory to
3551 # add to the run-time search path, if that's necessary.
3553 # Note: spaces after V_SONAME_OPT are significant; on
3554 # some platforms the soname is passed with a GCC-like
3555 # "-Wl,-soname,{soname}" option, with the soname part
3556 # of the option, while on other platforms the C compiler
3557 # driver takes it as a regular option with the soname
3558 # following the option. The same applies to V_RPATH_OPT.
3563 V_SHLIB_CMD="\$(CC)"
3564 V_SHLIB_OPT="-G -bnoentry -bexpall"
3567 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3571 V_CCOPT="$V_CCOPT -fpic"
3572 V_SHLIB_CMD="\$(CC)"
3573 V_SHLIB_OPT="-shared"
3574 V_SONAME_OPT="-Wl,-soname,"
3575 V_RPATH_OPT="-Wl,-rpath,"
3579 V_CCOPT="$V_CCOPT +z"
3580 V_SHLIB_CMD="\$(LD)"
3584 # By default, directories specifed with -L
3585 # are added to the run-time search path, so
3586 # we don't add them in pcap-config.
3592 # Presumed to be DEC OSF/1, Digital UNIX, or
3595 V_SHLIB_CMD="\$(CC)"
3596 V_SHLIB_OPT="-shared"
3597 V_SONAME_OPT="-soname "
3598 V_RPATH_OPT="-rpath "
3602 V_CCOPT="$V_CCOPT -Kpic"
3603 V_SHLIB_CMD="\$(CC)"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3612 $as_echo_n "checking for inline... " >&6; }
3613 save_CFLAGS="$CFLAGS"
3615 if test "${ac_cv_lbl_inline+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3621 for ac_lbl_inline in inline __inline__ __inline
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #define inline $ac_lbl_inline
3626 static inline struct iltest *foo(void);
3632 static inline struct iltest *
3635 static struct iltest xxx;
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_lbl_cc_inline=yes
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 if test "$ac_lbl_cc_inline" = yes ; then
3655 if test "$ac_lbl_cc_inline" = yes ; then
3656 ac_cv_lbl_inline=$ac_lbl_inline
3660 CFLAGS="$save_CFLAGS"
3661 if test ! -z "$ac_cv_lbl_inline" ; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5
3663 $as_echo "$ac_cv_lbl_inline" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 cat >>confdefs.h <<_ACEOF
3670 #define inline $ac_cv_lbl_inline
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
3675 $as_echo_n "checking for __attribute__... " >&6; }
3676 if test "${ac_cv___attribute__+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3685 static void foo(void) __attribute__ ((noreturn));
3694 main(int argc, char **argv)
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv___attribute__=yes
3703 ac_cv___attribute__=no
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 if test "$ac_cv___attribute__" = "yes"; then
3710 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
3712 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3714 V_DEFS="$V_DEFS -D_U_=\"\""
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
3717 $as_echo "$ac_cv___attribute__" >&6; }
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3727 # On Suns, sometimes $CPP names a directory.
3728 if test -n "$CPP" && test -d "$CPP"; then
3731 if test -z "$CPP"; then
3732 if test "${ac_cv_prog_CPP+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3735 # Double quotes because CPP needs to be expanded
3736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3739 for ac_c_preproc_warn_flag in '' yes
3741 # Use a header file that comes with gcc, so configuring glibc
3742 # with a fresh cross-compiler works.
3743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 # <limits.h> exists even on freestanding compilers.
3745 # On the NeXT, cc -E runs the code through the compiler's parser,
3746 # not just through cpp. "Syntax error" is here to catch this case.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 # include <limits.h>
3752 # include <assert.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: fails on valid input.
3762 rm -f conftest.err conftest.i conftest.$ac_ext
3764 # OK, works on sane cases. Now check whether nonexistent headers
3765 # can be detected and how.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ac_nonexistent.h>
3770 if ac_fn_c_try_cpp "$LINENO"; then :
3771 # Broken: success on invalid input.
3774 # Passes both tests.
3778 rm -f conftest.err conftest.i conftest.$ac_ext
3781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782 rm -f conftest.i conftest.err conftest.$ac_ext
3783 if $ac_preproc_ok; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3796 $as_echo "$CPP" >&6; }
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3818 # Broken: fails on valid input.
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3833 # Passes both tests.
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details" "$LINENO" 5 ; }
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3860 if test "${ac_cv_path_GREP+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3863 if test -z "$GREP"; then
3864 ac_path_GREP_found=false
3865 # Loop through the user's path and test for each of PROGNAME-LIST
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in grep ggrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3874 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877 case `"$ac_path_GREP" --version 2>&1` in
3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3882 $as_echo_n 0123456789 >"conftest.in"
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
3888 $as_echo 'GREP' >> "conftest.nl"
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 as_fn_arith $ac_count + 1 && ac_count=$as_val
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP="$ac_path_GREP"
3895 ac_path_GREP_max=$ac_count
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 $ac_path_GREP_found && break 3
3908 if test -z "$ac_cv_path_GREP"; then
3909 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3912 ac_cv_path_GREP=$GREP
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3917 $as_echo "$ac_cv_path_GREP" >&6; }
3918 GREP="$ac_cv_path_GREP"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3922 $as_echo_n "checking for egrep... " >&6; }
3923 if test "${ac_cv_path_EGREP+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3927 then ac_cv_path_EGREP="$GREP -E"
3929 if test -z "$EGREP"; then
3930 ac_path_EGREP_found=false
3931 # Loop through the user's path and test for each of PROGNAME-LIST
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3936 test -z "$as_dir" && as_dir=.
3937 for ac_prog in egrep; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3940 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3941 # Check for GNU ac_path_EGREP and select it if it is found.
3942 # Check for GNU $ac_path_EGREP
3943 case `"$ac_path_EGREP" --version 2>&1` in
3945 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3948 $as_echo_n 0123456789 >"conftest.in"
3951 cat "conftest.in" "conftest.in" >"conftest.tmp"
3952 mv "conftest.tmp" "conftest.in"
3953 cp "conftest.in" "conftest.nl"
3954 $as_echo 'EGREP' >> "conftest.nl"
3955 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957 as_fn_arith $ac_count + 1 && ac_count=$as_val
3958 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3959 # Best one so far, save it but keep looking for a better one
3960 ac_cv_path_EGREP="$ac_path_EGREP"
3961 ac_path_EGREP_max=$ac_count
3963 # 10*(2^10) chars as input seems more than enough
3964 test $ac_count -gt 10 && break
3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 $ac_path_EGREP_found && break 3
3974 if test -z "$ac_cv_path_EGREP"; then
3975 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3978 ac_cv_path_EGREP=$EGREP
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3984 $as_echo "$ac_cv_path_EGREP" >&6; }
3985 EGREP="$ac_cv_path_EGREP"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3989 $as_echo_n "checking for ANSI C header files... " >&6; }
3990 if test "${ac_cv_header_stdc+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_header_stdc=yes
4011 ac_cv_header_stdc=no
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 if test $ac_cv_header_stdc = yes; then
4016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4023 $EGREP "memchr" >/dev/null 2>&1; then :
4026 ac_cv_header_stdc=no
4032 if test $ac_cv_header_stdc = yes; then
4033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then :
4043 ac_cv_header_stdc=no
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then :
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 #if ((' ' & 0x0FF) == 0x020)
4059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4062 # define ISLOWER(c) \
4063 (('a' <= (c) && (c) <= 'i') \
4064 || ('j' <= (c) && (c) <= 'r') \
4065 || ('s' <= (c) && (c) <= 'z'))
4066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4074 for (i = 0; i < 256; i++)
4075 if (XOR (islower (i), ISLOWER (i))
4076 || toupper (i) != TOUPPER (i))
4081 if ac_fn_c_try_run "$LINENO"; then :
4084 ac_cv_header_stdc=no
4086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4087 conftest.$ac_objext conftest.beam conftest.$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4093 $as_echo "$ac_cv_header_stdc" >&6; }
4094 if test $ac_cv_header_stdc = yes; then
4096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4100 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102 inttypes.h stdint.h unistd.h
4104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4108 cat >>confdefs.h <<_ACEOF
4109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 for ac_header in sys/bitypes.h
4119 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
4120 if test "x$ac_cv_header_sys_bitypes_h" = x""yes; then :
4121 cat >>confdefs.h <<_ACEOF
4122 #define HAVE_SYS_BITYPES_H 1
4130 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default
4131 #ifdef HAVE_SYS_BITYPES_H
4132 #include <sys/bitypes.h>
4135 if test "x$ac_cv_type_int8_t" = x""yes; then :
4139 $as_echo "#define int8_t signed char" >>confdefs.h
4143 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default
4144 #ifdef HAVE_SYS_BITYPES_H
4145 #include <sys/bitypes.h>
4148 if test "x$ac_cv_type_u_int8_t" = x""yes; then :
4152 $as_echo "#define u_int8_t unsigned char" >>confdefs.h
4156 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4157 if test "x$ac_cv_type_int16_t" = x""yes; then :
4161 $as_echo "#define int16_t short" >>confdefs.h
4163 $ac_includes_default
4164 #ifdef HAVE_SYS_BITYPES_H
4165 #include <sys/bitypes.h>
4169 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default
4170 #ifdef HAVE_SYS_BITYPES_H
4171 #include <sys/bitypes.h>
4174 if test "x$ac_cv_type_u_int16_t" = x""yes; then :
4178 $as_echo "#define u_int16_t unsigned short" >>confdefs.h
4182 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default
4183 #ifdef HAVE_SYS_BITYPES_H
4184 #include <sys/bitypes.h>
4187 if test "x$ac_cv_type_int32_t" = x""yes; then :
4191 $as_echo "#define int32_t int" >>confdefs.h
4195 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default
4196 #ifdef HAVE_SYS_BITYPES_H
4197 #include <sys/bitypes.h>
4200 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
4204 $as_echo "#define u_int32_t unsigned int" >>confdefs.h
4208 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default
4209 #ifdef HAVE_SYS_BITYPES_H
4210 #include <sys/bitypes.h>
4213 if test "x$ac_cv_type_int64_t" = x""yes; then :
4217 $as_echo "#define int64_t long long" >>confdefs.h
4221 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default
4222 #ifdef HAVE_SYS_BITYPES_H
4223 #include <sys/bitypes.h>
4226 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
4230 $as_echo "#define u_int64_t unsigned long long" >>confdefs.h
4236 # Try to arrange for large file support.
4238 # Check whether --enable-largefile was given.
4239 if test "${enable_largefile+set}" = set; then :
4240 enableval=$enable_largefile;
4243 if test "$enable_largefile" != no; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4246 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4247 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 ac_cv_sys_largefile_CC=no
4251 if test "$GCC" != yes; then
4254 # IRIX 6.2 and later do not support large files by default,
4255 # so use the C compiler's -n32 option if that helps.
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 /* Check that off_t can represent 2**63 - 1 correctly.
4260 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261 since some C++ compilers masquerading as C compilers
4262 incorrectly reject 9223372036854775807. */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265 && LARGE_OFF_T % 2147483647 == 1)
4275 if ac_fn_c_try_compile "$LINENO"; then :
4278 rm -f core conftest.err conftest.$ac_objext
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_sys_largefile_CC=' -n32'; break
4283 rm -f core conftest.err conftest.$ac_objext
4287 rm -f conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4291 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4292 if test "$ac_cv_sys_largefile_CC" != no; then
4293 CC=$CC$ac_cv_sys_largefile_CC
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4297 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4298 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <sys/types.h>
4305 /* Check that off_t can represent 2**63 - 1 correctly.
4306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4307 since some C++ compilers masquerading as C compilers
4308 incorrectly reject 9223372036854775807. */
4309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4311 && LARGE_OFF_T % 2147483647 == 1)
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_sys_file_offset_bits=no; break
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #define _FILE_OFFSET_BITS 64
4328 #include <sys/types.h>
4329 /* Check that off_t can represent 2**63 - 1 correctly.
4330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4331 since some C++ compilers masquerading as C compilers
4332 incorrectly reject 9223372036854775807. */
4333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4335 && LARGE_OFF_T % 2147483647 == 1)
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_cv_sys_file_offset_bits=64; break
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_cv_sys_file_offset_bits=unknown
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4354 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4355 case $ac_cv_sys_file_offset_bits in #(
4358 cat >>confdefs.h <<_ACEOF
4359 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4364 if test $ac_cv_sys_file_offset_bits = unknown; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4366 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4367 if test "${ac_cv_sys_large_files+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_sys_large_files=no; break
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #define _LARGE_FILES 1
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 ac_cv_sys_large_files=1; break
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 ac_cv_sys_large_files=unknown
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4423 $as_echo "$ac_cv_sys_large_files" >&6; }
4424 case $ac_cv_sys_large_files in #(
4427 cat >>confdefs.h <<_ACEOF
4428 #define _LARGE_FILES $ac_cv_sys_large_files
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4437 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4438 if test "${ac_cv_sys_largefile_source+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <sys/types.h> /* for off_t */
4449 int (*fp) (FILE *, off_t, int) = fseeko;
4450 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4455 if ac_fn_c_try_link "$LINENO"; then :
4456 ac_cv_sys_largefile_source=no; break
4458 rm -f core conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _LARGEFILE_SOURCE 1
4463 #include <sys/types.h> /* for off_t */
4468 int (*fp) (FILE *, off_t, int) = fseeko;
4469 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4474 if ac_fn_c_try_link "$LINENO"; then :
4475 ac_cv_sys_largefile_source=1; break
4477 rm -f core conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4479 ac_cv_sys_largefile_source=unknown
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4484 $as_echo "$ac_cv_sys_largefile_source" >&6; }
4485 case $ac_cv_sys_largefile_source in #(
4488 cat >>confdefs.h <<_ACEOF
4489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4495 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4496 # in glibc 2.1.3, but that breaks too many other things.
4497 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4498 if test $ac_cv_sys_largefile_source != unknown; then
4500 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4505 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4508 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4509 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4510 cat >>confdefs.h <<_ACEOF
4511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 for ac_header in linux/types.h
4520 ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
4521 if test "x$ac_cv_header_linux_types_h" = x""yes; then :
4522 cat >>confdefs.h <<_ACEOF
4523 #define HAVE_LINUX_TYPES_H 1
4530 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
4532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4535 cat >>confdefs.h <<_ACEOF
4536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543 for ac_header in net/pfvar.h
4545 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#include <sys/types.h>
4546 #include <sys/socket.h>
4549 if test "x$ac_cv_header_net_pfvar_h" = x""yes; then :
4550 cat >>confdefs.h <<_ACEOF
4551 #define HAVE_NET_PFVAR_H 1
4558 if test "$ac_cv_header_net_pfvar_h" = yes; then
4560 # Check for various PF actions.
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4563 $as_echo_n "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... " >&6; }
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 #include <sys/socket.h>
4569 #include <net/pfvar.h>
4573 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4578 if ac_fn_c_try_compile "$LINENO"; then :
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581 $as_echo "yes" >&6; }
4583 $as_echo "#define HAVE_PF_NAT_THROUGH_PF_NORDR 1" >>confdefs.h
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 for ac_header in netinet/if_ether.h
4594 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4595 #include <sys/socket.h>
4597 if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then :
4598 cat >>confdefs.h <<_ACEOF
4599 #define HAVE_NETINET_IF_ETHER_H 1
4606 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4608 # The simple test didn't work.
4609 # Do we need to include <net/if.h> first?
4610 # Unset ac_cv_header_netinet_if_ether_h so we don't
4611 # treat the previous failure as a cached value and
4612 # suppress the next test.
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rechecking with some additional includes" >&5
4615 $as_echo "$as_me: Rechecking with some additional includes" >&6;}
4616 unset ac_cv_header_netinet_if_ether_h
4617 for ac_header in netinet/if_ether.h
4619 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#include <sys/types.h>
4620 #include <sys/socket.h>
4621 #include <netinet/in.h>
4626 if test "x$ac_cv_header_netinet_if_ether_h" = x""yes; then :
4627 cat >>confdefs.h <<_ACEOF
4628 #define HAVE_NETINET_IF_ETHER_H 1
4637 if test "$GCC" = yes ; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI ioctl definitions" >&5
4639 $as_echo_n "checking for ANSI ioctl definitions... " >&6; }
4640 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4646 * This generates a "duplicate case value" when fixincludes
4649 # include <sys/types.h>
4650 # include <sys/time.h>
4651 # include <sys/ioctl.h>
4652 # ifdef HAVE_SYS_IOCCOM_H
4653 # include <sys/ioccom.h>
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_lbl_gcc_fixincludes=yes
4669 ac_cv_lbl_gcc_fixincludes=no
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_gcc_fixincludes" >&5
4675 $as_echo "$ac_cv_lbl_gcc_fixincludes" >&6; }
4676 if test $ac_cv_lbl_gcc_fixincludes = no ; then
4677 # Don't cache failure
4678 unset ac_cv_lbl_gcc_fixincludes
4679 as_fn_error $? "see the INSTALL for more info" "$LINENO" 5
4683 for ac_func in strerror strlcpy
4685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4697 for ac_func in vsnprintf snprintf
4699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4711 if test $needsnprintf = yes; then
4712 case " $LIBOBJS " in
4713 *" snprintf.$ac_objext "* ) ;;
4714 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4721 # Do this before checking for ether_hostton(), as it's a
4722 # "gethostbyname() -ish function".
4725 # Most operating systems have gethostbyname() in the default searched
4726 # libraries (i.e. libc):
4727 # Some OSes (eg. Solaris) place it in libnsl
4728 # Some strange OSes (SINIX) have it in libsocket:
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4730 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4731 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4734 ac_func_search_save_LIBS=$LIBS
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4738 /* Override any GCC internal prototype to avoid an error.
4739 Use char because int might match the return type of a GCC
4740 builtin and then its argument prototype would still apply. */
4744 char gethostbyname ();
4748 return gethostbyname ();
4753 for ac_lib in '' nsl socket resolv; do
4754 if test -z "$ac_lib"; then
4755 ac_res="none required"
4758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4760 if ac_fn_c_try_link "$LINENO"; then :
4761 ac_cv_search_gethostbyname=$ac_res
4763 rm -f core conftest.err conftest.$ac_objext \
4765 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4769 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4772 ac_cv_search_gethostbyname=no
4775 LIBS=$ac_func_search_save_LIBS
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4778 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4779 ac_res=$ac_cv_search_gethostbyname
4780 if test "$ac_res" != no; then :
4781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4785 # Unfortunately libsocket sometimes depends on libnsl and
4786 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4787 if test "$ac_cv_search_gethostbyname" = "no"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
4790 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
4791 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 ac_check_lib_save_LIBS=$LIBS
4795 LIBS="-lsocket -lnsl $LIBS"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4799 /* Override any GCC internal prototype to avoid an error.
4800 Use char because int might match the return type of a GCC
4801 builtin and then its argument prototype would still apply. */
4805 char gethostbyname ();
4809 return gethostbyname ();
4814 if ac_fn_c_try_link "$LINENO"; then :
4815 ac_cv_lib_socket_gethostbyname=yes
4817 ac_cv_lib_socket_gethostbyname=no
4819 rm -f core conftest.err conftest.$ac_objext \
4820 conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4824 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4825 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
4826 LIBS="-lsocket -lnsl $LIBS"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4831 $as_echo_n "checking for library containing socket... " >&6; }
4832 if test "${ac_cv_search_socket+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 ac_func_search_save_LIBS=$LIBS
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4854 for ac_lib in '' socket; do
4855 if test -z "$ac_lib"; then
4856 ac_res="none required"
4859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 if ac_fn_c_try_link "$LINENO"; then :
4862 ac_cv_search_socket=$ac_res
4864 rm -f core conftest.err conftest.$ac_objext \
4866 if test "${ac_cv_search_socket+set}" = set; then :
4870 if test "${ac_cv_search_socket+set}" = set; then :
4873 ac_cv_search_socket=no
4876 LIBS=$ac_func_search_save_LIBS
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4879 $as_echo "$ac_cv_search_socket" >&6; }
4880 ac_res=$ac_cv_search_socket
4881 if test "$ac_res" != no; then :
4882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4886 $as_echo_n "checking for socket in -lsocket... " >&6; }
4887 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4890 ac_check_lib_save_LIBS=$LIBS
4891 LIBS="-lsocket -lnsl $LIBS"
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4895 /* Override any GCC internal prototype to avoid an error.
4896 Use char because int might match the return type of a GCC
4897 builtin and then its argument prototype would still apply. */
4910 if ac_fn_c_try_link "$LINENO"; then :
4911 ac_cv_lib_socket_socket=yes
4913 ac_cv_lib_socket_socket=no
4915 rm -f core conftest.err conftest.$ac_objext \
4916 conftest$ac_exeext conftest.$ac_ext
4917 LIBS=$ac_check_lib_save_LIBS
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4920 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4921 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4922 LIBS="-lsocket -lnsl $LIBS"
4927 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5
4929 $as_echo_n "checking for library containing putmsg... " >&6; }
4930 if test "${ac_cv_search_putmsg+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4933 ac_func_search_save_LIBS=$LIBS
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4952 for ac_lib in '' str; do
4953 if test -z "$ac_lib"; then
4954 ac_res="none required"
4957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4959 if ac_fn_c_try_link "$LINENO"; then :
4960 ac_cv_search_putmsg=$ac_res
4962 rm -f core conftest.err conftest.$ac_objext \
4964 if test "${ac_cv_search_putmsg+set}" = set; then :
4968 if test "${ac_cv_search_putmsg+set}" = set; then :
4971 ac_cv_search_putmsg=no
4974 LIBS=$ac_func_search_save_LIBS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5
4977 $as_echo "$ac_cv_search_putmsg" >&6; }
4978 ac_res=$ac_cv_search_putmsg
4979 if test "$ac_res" != no; then :
4980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4987 # You are in a twisty little maze of UN*Xes, all different.
4988 # Some might not have ether_hostton().
4989 # Some might have it, but not declare it in any header file.
4990 # Some might have it, but declare it in <netinet/if_ether.h>.
4991 # Some might have it, but declare it in <netinet/ether.h>
4992 # (And some might have it but document it as something declared in
4993 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
4995 # Before you is a C compiler.
4997 for ac_func in ether_hostton
4999 ac_fn_c_check_func "$LINENO" "ether_hostton" "ac_cv_func_ether_hostton"
5000 if test "x$ac_cv_func_ether_hostton" = x""yes; then :
5001 cat >>confdefs.h <<_ACEOF
5002 #define HAVE_ETHER_HOSTTON 1
5008 if test "$ac_cv_func_ether_hostton" = yes; then
5010 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5012 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5014 # Yes. Does it declare ether_hostton()?
5016 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5017 #include <sys/types.h>
5018 #include <sys/socket.h>
5019 #include <netinet/in.h>
5020 #include <arpa/inet.h>
5024 #include <netinet/if_ether.h>
5027 if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then :
5030 $as_echo "#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5039 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5041 # No, how about <netinet/ether.h>, as on Linux?
5043 for ac_header in netinet/ether.h
5045 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ether.h" "ac_cv_header_netinet_ether_h" "$ac_includes_default"
5046 if test "x$ac_cv_header_netinet_ether_h" = x""yes; then :
5047 cat >>confdefs.h <<_ACEOF
5048 #define HAVE_NETINET_ETHER_H 1
5055 if test "$ac_cv_header_netinet_ether_h" = yes; then
5057 # We have it - does it declare ether_hostton()?
5058 # Unset ac_cv_have_decl_ether_hostton so we don't
5059 # treat the previous failure as a cached value and
5060 # suppress the next test.
5062 unset ac_cv_have_decl_ether_hostton
5063 ac_fn_c_check_decl "$LINENO" "ether_hostton" "ac_cv_have_decl_ether_hostton" "
5064 #include <netinet/ether.h>
5067 if test "x$ac_cv_have_decl_ether_hostton" = x""yes; then :
5070 $as_echo "#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON /**/" >>confdefs.h
5078 # Is ether_hostton() declared?
5080 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5082 # No, we'll have to declare it ourselves.
5083 # Do we have "struct ether_addr"?
5085 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" "
5086 #include <sys/types.h>
5087 #include <sys/socket.h>
5088 #include <netinet/in.h>
5089 #include <arpa/inet.h>
5093 #include <netinet/if_ether.h>
5096 if test "x$ac_cv_type_struct_ether_addr" = x""yes; then :
5098 cat >>confdefs.h <<_ACEOF
5099 #define HAVE_STRUCT_ETHER_ADDR 1
5106 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 0" >>confdefs.h
5110 $as_echo "#define HAVE_DECL_ETHER_HOSTTON 1" >>confdefs.h
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-protochain option is specified" >&5
5116 $as_echo_n "checking if --disable-protochain option is specified... " >&6; }
5117 # Check whether --enable-protochain was given.
5118 if test "${enable_protochain+set}" = set; then :
5119 enableval=$enable_protochain;
5122 case "x$enable_protochain" in
5123 xyes) enable_protochain=enabled ;;
5124 xno) enable_protochain=disabled ;;
5125 x) enable_protochain=enabled ;;
5128 if test "$enable_protochain" = "disabled"; then
5130 $as_echo "#define NO_PROTOCHAIN 1" >>confdefs.h
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_protochain}" >&5
5134 $as_echo "${enable_protochain}" >&6; }
5137 # SITA support is mutually exclusive with native capture support;
5138 # "--with-sita" selects SITA support.
5141 # Check whether --with-sita was given.
5142 if test "${with_sita+set}" = set; then :
5144 if test ! "x$withval" = "xno" ; then
5146 $as_echo "#define SITA 1" >>confdefs.h
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling SITA ACN support" >&5
5149 $as_echo "$as_me: Enabling SITA ACN support" >&6;}
5156 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5157 as_fn_error $? "pcap type not determined when cross-compiling; use --with-pcap=..." "$LINENO" 5
5160 # Check whether --with-pcap was given.
5161 if test "${with_pcap+set}" = set; then :
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5
5166 $as_echo_n "checking packet capture type... " >&6; }
5167 if test ! -z "$with_pcap" ; then
5169 elif test -r /dev/bpf -o -h /dev/bpf ; then
5171 # Cloning BPF device.
5175 $as_echo "#define HAVE_CLONING_BPF 1" >>confdefs.h
5177 elif test -r /dev/bpf0 ; then
5179 elif test -r /usr/include/net/pfilt.h ; then
5181 elif test -r /dev/enet ; then
5183 elif test -r /dev/nit ; then
5185 elif test -r /usr/include/sys/net/nit.h ; then
5187 elif test -r /usr/include/linux/socket.h ; then
5189 elif test -r /usr/include/net/raw.h ; then
5191 elif test -r /usr/include/odmi.h ; then
5193 # On AIX, the BPF devices might not yet be present - they're
5194 # created the first time libpcap runs after booting.
5195 # We check for odmi.h instead.
5198 elif test -c /dev/bpf0 ; then # check again in case not readable
5200 elif test -r /usr/include/sys/dlpi.h ; then
5202 elif test -c /dev/enet ; then # check again in case not readable
5204 elif test -c /dev/nit ; then # check again in case not readable
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5
5210 $as_echo "$V_PCAP" >&6; }
5213 # Do capture-mechanism-dependent tests.
5218 # Checks to see if Solaris has the public libdlpi(3LIB) library.
5219 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
5220 # public libdlpi(3LIB) version. Before libdlpi was made public, a
5221 # private version also existed, which did not have the same APIs.
5222 # Due to a gcc bug, the default search path for 32-bit libraries does
5223 # not include /lib, we add it explicitly here.
5224 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
5225 # Also, due to the bug above applications that link to libpcap with
5226 # libdlpi will have to add "-L/lib" option to "configure".
5228 saved_ldflags=$LDFLAGS
5229 LDFLAGS="$LIBS -L/lib"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5
5231 $as_echo_n "checking for dlpi_walk in -ldlpi... " >&6; }
5232 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 ac_check_lib_save_LIBS=$LIBS
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5250 return dlpi_walk ();
5255 if ac_fn_c_try_link "$LINENO"; then :
5256 ac_cv_lib_dlpi_dlpi_walk=yes
5258 ac_cv_lib_dlpi_dlpi_walk=no
5260 rm -f core conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
5265 $as_echo "$ac_cv_lib_dlpi_dlpi_walk" >&6; }
5266 if test "x$ac_cv_lib_dlpi_dlpi_walk" = x""yes; then :
5270 $as_echo "#define HAVE_LIBDLPI 1" >>confdefs.h
5276 LDFLAGS=$saved_ldflags
5279 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/dlpi.h> is usable" >&5
5283 $as_echo_n "checking whether <sys/dlpi.h> is usable... " >&6; }
5284 if test "${ac_cv_sys_dlpi_usable+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 #include <sys/types.h>
5291 #include <sys/time.h>
5292 #include <sys/dlpi.h>
5297 int i = DL_PROMISC_PHYS;
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_sys_dlpi_usable=yes
5305 ac_cv_sys_dlpi_usable=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_dlpi_usable" >&5
5311 $as_echo "$ac_cv_sys_dlpi_usable" >&6; }
5312 if test $ac_cv_sys_dlpi_usable = no ; then
5313 as_fn_error $? "<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" "$LINENO" 5
5317 # Check whether we have a /dev/dlpi device or have multiple devices.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/dlpi device" >&5
5320 $as_echo_n "checking for /dev/dlpi device... " >&6; }
5321 if test -c /dev/dlpi ; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5325 $as_echo "#define HAVE_DEV_DLPI 1" >>confdefs.h
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir directory" >&5
5332 $as_echo_n "checking for $dir directory... " >&6; }
5333 if test -d $dir ; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5337 cat >>confdefs.h <<_ACEOF
5338 #define PCAP_DEV_PREFIX "$dir"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5348 # This check is for Solaris with DLPI support for passive modes.
5349 # See dlpi(7P) for more details.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_passive_req_t struct exists" >&5
5352 $as_echo_n "checking if dl_passive_req_t struct exists... " >&6; }
5353 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5359 # include <sys/types.h>
5360 # include <sys/dlpi.h>
5364 u_int i = sizeof(dl_passive_req_t)
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 ac_cv_lbl_has_dl_passive_req_t=yes
5372 ac_cv_lbl_has_dl_passive_req_t=no
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
5378 $as_echo "$ac_cv_lbl_has_dl_passive_req_t" >&6; }
5379 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
5381 $as_echo "#define HAVE_DLPI_PASSIVE 1" >>confdefs.h
5388 # Do we have the wireless extensions?
5390 for ac_header in linux/wireless.h
5392 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
5393 #include <sys/socket.h>
5394 #include <linux/if.h>
5395 #include <linux/types.h>
5398 if test "x$ac_cv_header_linux_wireless_h" = x""yes; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_LINUX_WIRELESS_H 1
5412 # Check whether --with-libnl was given.
5413 if test "${with_libnl+set}" = set; then :
5414 withval=$with_libnl; with_libnl=$withval
5418 if test x$with_libnl != xno ; then
5420 # Try libnl 2.x first.
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_socket_alloc in -lnl" >&5
5423 $as_echo_n "checking for nl_socket_alloc in -lnl... " >&6; }
5424 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5427 ac_check_lib_save_LIBS=$LIBS
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5438 char nl_socket_alloc ();
5442 return nl_socket_alloc ();
5447 if ac_fn_c_try_link "$LINENO"; then :
5448 ac_cv_lib_nl_nl_socket_alloc=yes
5450 ac_cv_lib_nl_nl_socket_alloc=no
5452 rm -f core conftest.err conftest.$ac_objext \
5453 conftest$ac_exeext conftest.$ac_ext
5454 LIBS=$ac_check_lib_save_LIBS
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
5457 $as_echo "$ac_cv_lib_nl_nl_socket_alloc" >&6; }
5458 if test "x$ac_cv_lib_nl_nl_socket_alloc" = x""yes; then :
5461 # Yes, we have libnl 2.x.
5463 LIBS="-lnl-genl -lnl $LIBS"
5465 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5468 $as_echo "#define HAVE_LIBNL_2_x 1" >>confdefs.h
5474 # No, we don't; do we have libnl 1.x?
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_handle_alloc in -lnl" >&5
5477 $as_echo_n "checking for nl_handle_alloc in -lnl... " >&6; }
5478 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5481 ac_check_lib_save_LIBS=$LIBS
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5492 char nl_handle_alloc ();
5496 return nl_handle_alloc ();
5501 if ac_fn_c_try_link "$LINENO"; then :
5502 ac_cv_lib_nl_nl_handle_alloc=yes
5504 ac_cv_lib_nl_nl_handle_alloc=no
5506 rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext conftest.$ac_ext
5508 LIBS=$ac_check_lib_save_LIBS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
5511 $as_echo "$ac_cv_lib_nl_nl_handle_alloc" >&6; }
5512 if test "x$ac_cv_lib_nl_nl_handle_alloc" = x""yes; then :
5519 $as_echo "#define HAVE_LIBNL 1" >>confdefs.h
5525 # No, we don't have libnl at all.
5527 if test x$with_libnl = xyes ; then
5528 as_fn_error $? "libnl support requested but libnl not found" "$LINENO" 5
5538 for ac_header in linux/ethtool.h
5540 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
5541 $ac_includes_default
5542 #include <linux/types.h>
5545 if test "x$ac_cv_header_linux_ethtool_h" = x""yes; then :
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LINUX_ETHTOOL_H 1
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_packet.h has tpacket_stats defined" >&5
5555 $as_echo_n "checking if if_packet.h has tpacket_stats defined... " >&6; }
5556 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5562 # include <linux/if_packet.h>
5566 struct tpacket_stats stats
5571 if ac_fn_c_try_compile "$LINENO"; then :
5572 ac_cv_lbl_tpacket_stats=yes
5574 ac_cv_lbl_tpacket_stats=no
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_tpacket_stats" >&5
5580 $as_echo "$ac_cv_lbl_tpacket_stats" >&6; }
5581 if test $ac_cv_lbl_tpacket_stats = yes; then
5583 $as_echo "#define HAVE_TPACKET_STATS 1" >>confdefs.h
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
5587 $as_echo_n "checking if tpacket_auxdata struct has tp_vlan_tci member... " >&6; }
5588 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then :
5589 $as_echo_n "(cached) " >&6
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 # include <sys/types.h>
5595 # include <linux/if_packet.h>
5599 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
5607 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
5613 $as_echo "$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
5614 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
5615 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
5618 $as_echo "#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1" >>confdefs.h
5625 # Check whether we have the *BSD-style ioctls.
5627 for ac_header in net/if_media.h
5629 ac_fn_c_check_header_mongrel "$LINENO" "net/if_media.h" "ac_cv_header_net_if_media_h" "$ac_includes_default"
5630 if test "x$ac_cv_header_net_if_media_h" = x""yes; then :
5631 cat >>confdefs.h <<_ACEOF
5632 #define HAVE_NET_IF_MEDIA_H 1
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the system supports zerocopy BPF" >&5
5641 $as_echo_n "checking whether the system supports zerocopy BPF... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/socket.h>
5645 #include <sys/ioctl.h>
5647 #include <net/bpf.h>
5651 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
5656 if ac_fn_c_try_compile "$LINENO"; then :
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659 $as_echo "yes" >&6; }
5661 $as_echo "#define HAVE_ZEROCOPY_BPF 1" >>confdefs.h
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 # Check whether we have struct BPF_TIMEVAL.
5673 ac_fn_c_check_type "$LINENO" "struct BPF_TIMEVAL" "ac_cv_type_struct_BPF_TIMEVAL" "
5674 #include <sys/types.h>
5675 #include <sys/ioctl.h>
5676 #ifdef HAVE_SYS_IOCCOM_H
5677 #include <sys/ioccom.h>
5679 #include <net/bpf.h>
5682 if test "x$ac_cv_type_struct_BPF_TIMEVAL" = x""yes; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_STRUCT_BPF_TIMEVAL 1
5694 V_DEFS="$V_DEFS -DDAG_ONLY"
5698 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
5702 V_DEFS="$V_DEFS -DSNF_ONLY"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine packet capture interface" >&5
5707 $as_echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (see the INSTALL doc for more info)" >&5
5709 $as_echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
5713 if test "$V_PCAP" = null
5716 # We can't capture, so we can't open any capture
5717 # devices, so we won't return any interfaces.
5721 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
5722 if test "x$ac_cv_func_getifaddrs" = x""yes; then :
5725 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5726 # as well, just in case some platform is really weird.
5728 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
5732 # We have the header, so we use "getifaddrs()" to
5733 # get the list of interfaces.
5740 # We don't have the header - give up.
5741 # XXX - we could also fall back on some other
5742 # mechanism, but, for now, this'll catch this
5743 # problem so that we can at least try to figure
5744 # out something to do on systems with "getifaddrs()"
5745 # but without "ifaddrs.h", if there is something
5746 # we can do on those systems.
5748 as_fn_error $? "Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." "$LINENO" 5
5757 # Well, we don't have "getifaddrs()", so we have to use
5758 # some other mechanism; determine what that mechanism is.
5760 # The first thing we use is the type of capture mechanism,
5761 # which is somewhat of a proxy for the OS we're using.
5766 for ac_header in sys/bufmod.h sys/dlpi_ext.h
5768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5770 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5780 # This might be Solaris 8 or later, with
5781 # SIOCGLIFCONF, or it might be some other OS
5782 # or some older version of Solaris, with
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have SIOCGLIFCONF" >&5
5786 $as_echo_n "checking whether we have SIOCGLIFCONF... " >&6; }
5787 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <sys/param.h>
5793 #include <sys/file.h>
5794 #include <sys/ioctl.h>
5795 #include <sys/socket.h>
5796 #include <sys/sockio.h>
5800 ioctl(0, SIOCGLIFCONF, (char *)0);
5805 if ac_fn_c_try_compile "$LINENO"; then :
5806 ac_cv_lbl_have_siocglifconf=yes
5808 ac_cv_lbl_have_siocglifconf=no
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_have_siocglifconf" >&5
5814 $as_echo "$ac_cv_lbl_have_siocglifconf" >&6; }
5815 if test $ac_cv_lbl_have_siocglifconf = yes ; then
5821 # Needed for common functions used by pcap-[dlpi,libdlpi].c
5828 # Assume we just have SIOCGIFCONF.
5829 # (XXX - on at least later Linux kernels, there's
5830 # another mechanism, and we should be using that
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5844 $as_echo_n "checking for socklen_t... " >&6; }
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <sys/socket.h>
5859 if ac_fn_c_try_compile "$LINENO"; then :
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 if test "x$have_socklen_t" = "xyes"; then
5867 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socklen_t" >&5
5871 $as_echo "$have_socklen_t" >&6; }
5873 # Check whether --enable-ipv6 was given.
5874 if test "${enable_ipv6+set}" = set; then :
5875 enableval=$enable_ipv6;
5877 enable_ipv6=ifavailable
5880 if test "$enable_ipv6" != "no"; then
5881 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5882 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5885 $as_echo "#define INET6 1" >>confdefs.h
5890 if test "$enable_ipv6" != "ifavailable"; then
5891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5893 as_fn_error $? "--enable-ipv6 was given, but getaddrinfo isn't available
5894 See \`config.log' for more details" "$LINENO" 5 ; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build optimizer debugging code" >&5
5902 $as_echo_n "checking whether to build optimizer debugging code... " >&6; }
5903 # Check whether --enable-optimizer-dbg was given.
5904 if test "${enable_optimizer_dbg+set}" = set; then :
5905 enableval=$enable_optimizer_dbg;
5908 if test "$enable_optimizer_dbg" = "yes"; then
5910 $as_echo "#define BDEBUG 1" >>confdefs.h
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_optimizer_dbg-no}" >&5
5914 $as_echo "${enable_optimizer_dbg-no}" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build parser debugging code" >&5
5917 $as_echo_n "checking whether to build parser debugging code... " >&6; }
5918 # Check whether --enable-yydebug was given.
5919 if test "${enable_yydebug+set}" = set; then :
5920 enableval=$enable_yydebug;
5923 if test "$enable_yydebug" = "yes"; then
5925 $as_echo "#define YYDEBUG 1" >>confdefs.h
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_yydebug-no}" >&5
5929 $as_echo "${enable_yydebug-no}" >&6; }
5931 # Check for Endace DAG card support.
5933 # Check whether --with-dag was given.
5934 if test "${with_dag+set}" = set; then :
5936 if test "$withval" = no
5938 # User doesn't want DAG support.
5940 elif test "$withval" = yes
5942 # User wants DAG support but hasn't specified a directory.
5945 # User wants DAG support and has specified a directory, so use the provided value.
5953 # Use DAG API if present, otherwise don't
5961 # Check whether --with-dag-includes was given.
5962 if test "${with_dag_includes+set}" = set; then :
5963 withval=$with_dag_includes;
5964 # User wants DAG support and has specified a header directory, so use the provided value.
5966 dag_include_dir=$withval
5972 # Check whether --with-dag-libraries was given.
5973 if test "${with_dag_libraries+set}" = set; then :
5974 withval=$with_dag_libraries;
5975 # User wants DAG support and has specified a library directory, so use the provided value.
5977 dag_lib_dir=$withval
5985 # We support the DAG API if we're on Linux or BSD, or if we're
5986 # building a DAG-only libpcap.
5991 # If the user explicitly requested DAG, tell them it's not
5994 # If they expressed no preference, don't include it.
5996 if test $want_dag = yes; then
5997 as_fn_error $? "DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" "$LINENO" 5
5998 elif test $want_dag = yes; then
6004 ac_cv_lbl_dag_api=no
6005 if test "$want_dag" != no; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have DAG API headers" >&5
6008 $as_echo_n "checking whether we have DAG API headers... " >&6; }
6010 # If necessary, set default paths for DAG API headers and libraries.
6011 if test -z "$dag_root"; then
6015 if test -z "$dag_include_dir"; then
6016 dag_include_dir="$dag_root/include"
6019 if test -z "$dag_lib_dir"; then
6020 dag_lib_dir="$dag_root/lib"
6023 if test -z "$dag_tools_dir"; then
6024 dag_tools_dir="$dag_root/tools"
6027 if test -r $dag_include_dir/dagapi.h; then
6028 ac_cv_lbl_dag_api=yes
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6031 $as_echo "$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6034 if test $ac_cv_lbl_dag_api = yes; then
6035 V_INCLS="$V_INCLS -I$dag_include_dir"
6037 if test $V_PCAP != dag ; then
6041 # See if we can find a general version string.
6042 # Don't need to save and restore LIBS to prevent -ldag being
6043 # included if there's a found-action (arg 3).
6044 saved_ldflags=$LDFLAGS
6045 LDFLAGS="-L$dag_lib_dir"
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_attach_stream in -ldag" >&5
6047 $as_echo_n "checking for dag_attach_stream in -ldag... " >&6; }
6048 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6051 ac_check_lib_save_LIBS=$LIBS
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 /* Override any GCC internal prototype to avoid an error.
6057 Use char because int might match the return type of a GCC
6058 builtin and then its argument prototype would still apply. */
6062 char dag_attach_stream ();
6066 return dag_attach_stream ();
6071 if ac_fn_c_try_link "$LINENO"; then :
6072 ac_cv_lib_dag_dag_attach_stream=yes
6074 ac_cv_lib_dag_dag_attach_stream=no
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6081 $as_echo "$ac_cv_lib_dag_dag_attach_stream" >&6; }
6082 if test "x$ac_cv_lib_dag_dag_attach_stream" = x""yes; then :
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_erf_types in -ldag" >&5
6089 $as_echo_n "checking for dag_get_erf_types in -ldag... " >&6; }
6090 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 ac_check_lib_save_LIBS=$LIBS
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6098 /* Override any GCC internal prototype to avoid an error.
6099 Use char because int might match the return type of a GCC
6100 builtin and then its argument prototype would still apply. */
6104 char dag_get_erf_types ();
6108 return dag_get_erf_types ();
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 ac_cv_lib_dag_dag_get_erf_types=yes
6116 ac_cv_lib_dag_dag_get_erf_types=no
6118 rm -f core conftest.err conftest.$ac_objext \
6119 conftest$ac_exeext conftest.$ac_ext
6120 LIBS=$ac_check_lib_save_LIBS
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6123 $as_echo "$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6124 if test "x$ac_cv_lib_dag_dag_get_erf_types" = x""yes; then :
6127 $as_echo "#define HAVE_DAG_GET_ERF_TYPES 1" >>confdefs.h
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dag_get_stream_erf_types in -ldag" >&5
6132 $as_echo_n "checking for dag_get_stream_erf_types in -ldag... " >&6; }
6133 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6136 ac_check_lib_save_LIBS=$LIBS
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6141 /* Override any GCC internal prototype to avoid an error.
6142 Use char because int might match the return type of a GCC
6143 builtin and then its argument prototype would still apply. */
6147 char dag_get_stream_erf_types ();
6151 return dag_get_stream_erf_types ();
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 ac_cv_lib_dag_dag_get_stream_erf_types=yes
6159 ac_cv_lib_dag_dag_get_stream_erf_types=no
6161 rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
6166 $as_echo "$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
6167 if test "x$ac_cv_lib_dag_dag_get_stream_erf_types" = x""yes; then :
6170 $as_echo "#define HAVE_DAG_GET_STREAM_ERF_TYPES 1" >>confdefs.h
6175 LDFLAGS=$saved_ldflags
6177 if test "$dag_streams" = 1; then
6179 $as_echo "#define HAVE_DAG_STREAMS_API 1" >>confdefs.h
6182 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdag_set_device_info in -lvdag" >&5
6185 $as_echo_n "checking for vdag_set_device_info in -lvdag... " >&6; }
6186 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6189 ac_check_lib_save_LIBS=$LIBS
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6194 /* Override any GCC internal prototype to avoid an error.
6195 Use char because int might match the return type of a GCC
6196 builtin and then its argument prototype would still apply. */
6200 char vdag_set_device_info ();
6204 return vdag_set_device_info ();
6209 if ac_fn_c_try_link "$LINENO"; then :
6210 ac_cv_lib_vdag_vdag_set_device_info=yes
6212 ac_cv_lib_vdag_vdag_set_device_info=no
6214 rm -f core conftest.err conftest.$ac_objext \
6215 conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
6219 $as_echo "$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
6220 if test "x$ac_cv_lib_vdag_vdag_set_device_info" = x""yes; then :
6221 ac_dag_have_vdag="1"
6223 ac_dag_have_vdag="0"
6226 if test "$ac_dag_have_vdag" = 1; then
6228 $as_echo "#define HAVE_DAG_VDAG 1" >>confdefs.h
6230 LIBS="$LIBS -lpthread"
6235 $as_echo "#define HAVE_DAG_API 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have the DAG API" >&5
6240 $as_echo_n "checking whether we have the DAG API... " >&6; }
6242 if test $ac_cv_lbl_dag_api = no; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6245 if test "$want_dag" = yes; then
6246 # User wanted DAG support but we couldn't find it.
6247 as_fn_error $? "DAG API requested, but not found at $dag_root: use --without-dag" "$LINENO" 5
6250 if test "$V_PCAP" = dag; then
6251 # User requested "dag" capture type but the DAG API wasn't
6253 as_fn_error $? "Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" "$LINENO" 5
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6257 $as_echo "yes" >&6; }
6261 # Check whether --with-septel was given.
6262 if test "${with_septel+set}" = set; then :
6263 withval=$with_septel;
6264 if test "$withval" = no
6267 elif test "$withval" = yes
6273 septel_root=$withval
6279 # Use Septel API if present, otherwise don't
6281 want_septel=ifpresent
6282 septel_root=./../septel
6286 ac_cv_lbl_septel_api=no
6290 # We support the Septel API if we're on Linux, or if we're building
6291 # a Septel-only libpcap.
6296 # If the user explicitly requested Septel, tell them it's not
6299 # If they expressed no preference, don't include it.
6301 if test $want_septel = yes; then
6302 as_fn_error $? "Septel support only available with 'linux' and 'septel' packet capture types" "$LINENO" 5
6303 elif test $want_septel = yes; then
6309 if test "$with_septel" != no; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Septel API" >&5
6311 $as_echo_n "checking whether we have Septel API... " >&6; }
6313 if test -z "$septel_root"; then
6314 septel_root=$srcdir/../septel
6317 septel_tools_dir="$septel_root"
6318 septel_include_dir="$septel_root/INC"
6320 ac_cv_lbl_septel_api=no
6321 if test -r "$septel_include_dir/msg.h"; then
6322 V_INCLS="$V_INCLS -I$septel_include_dir"
6323 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"
6324 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"
6326 if test "$V_PCAP" != septel ; then
6327 SSRC="pcap-septel.c"
6329 ac_cv_lbl_septel_api=yes
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_septel_api" >&5
6333 $as_echo "$ac_cv_lbl_septel_api" >&6; }
6334 if test $ac_cv_lbl_septel_api = no; then
6335 if test "$want_septel" = yes; then
6336 as_fn_error $? "Septel API not found under directory $septel_root; use --without-septel" "$LINENO" 5
6340 $as_echo "#define HAVE_SEPTEL_API 1" >>confdefs.h
6345 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
6346 as_fn_error $? "Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" "$LINENO" 5
6349 # Check for Myricom SNF support.
6351 # Check whether --with-snf was given.
6352 if test "${with_snf+set}" = set; then :
6354 if test "$withval" = no
6356 # User explicitly doesn't want SNF
6358 elif test "$withval" = yes
6360 # User wants SNF support but hasn't specific a directory.
6363 # User wants SNF support with a specified directory.
6371 # Use Sniffer API if present, otherwise don't
6379 # Check whether --with-snf-includes was given.
6380 if test "${with_snf_includes+set}" = set; then :
6381 withval=$with_snf_includes;
6382 # User wants SNF with specific header directory
6384 snf_include_dir=$withval
6390 # Check whether --with-snf-libraries was given.
6391 if test "${with_snf_libraries+set}" = set; then :
6392 withval=$with_snf_libraries;
6393 # User wants SNF with specific lib directory
6395 snf_lib_dir=$withval
6403 # We support the Sniffer API if we're on BSD, Linux, or if we're
6404 # building a Sniffer-only libpcap.
6409 # If the user explicitly requested Sniffer, tell them it's not
6412 # If they expressed no preference, don't include it.
6414 if test $want_snf = yes; then
6415 as_fn_error $? "Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" "$LINENO" 5
6416 elif test $want_snf = yes; then
6422 ac_cv_lbl_snf_api=no
6423 if test "$with_snf" != no; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have Myricom Sniffer API" >&5
6426 $as_echo_n "checking whether we have Myricom Sniffer API... " >&6; }
6428 if test -z "$snf_root"; then
6432 if test -z "$snf_include_dir"; then
6433 snf_include_dir="$snf_root/include"
6436 if test -z "$snf_lib_dir"; then
6437 snf_lib_dir="$snf_root/lib"
6440 if test -f "$snf_include_dir/snf.h"; then
6441 ac_cv_lbl_snf_api=yes
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
6444 $as_echo "$ac_cv_lbl_snf_api ($snf_root)" >&6; }
6446 if test $ac_cv_lbl_snf_api = no; then
6447 if test "$want_snf" = yes; then
6448 as_fn_error $? "SNF API headers not found under $snf_include_dir; use --without-snf" "$LINENO" 5
6451 saved_ldflags=$LDFLAGS
6452 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snf_init in -lsnf" >&5
6454 $as_echo_n "checking for snf_init in -lsnf... " >&6; }
6455 if test "${ac_cv_lib_snf_snf_init+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 ac_check_lib_save_LIBS=$LIBS
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6463 /* Override any GCC internal prototype to avoid an error.
6464 Use char because int might match the return type of a GCC
6465 builtin and then its argument prototype would still apply. */
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 ac_cv_lib_snf_snf_init=yes
6481 ac_cv_lib_snf_snf_init=no
6483 rm -f core conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_snf_snf_init" >&5
6488 $as_echo "$ac_cv_lib_snf_snf_init" >&6; }
6489 if test "x$ac_cv_lib_snf_snf_init" = x""yes; then :
6490 ac_cv_lbl_snf_api="yes"
6492 ac_cv_lbl_snf_api="no"
6495 LDFLAGS="$saved_ldflags"
6497 if test $ac_cv_lbl_snf_api = no; then
6498 if test "$want_snf" = yes; then
6499 as_fn_error $? "SNF API cannot correctly be linked check config.log; use --without-snf" "$LINENO" 5
6502 V_INCLS="$V_INCLS -I$snf_include_dir"
6504 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
6505 if test "$V_PCAP" != snf ; then
6509 $as_echo "#define HAVE_SNF_API 1" >>confdefs.h
6515 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
6516 as_fn_error $? "Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" "$LINENO" 5
6520 # Check whether --with-flex was given.
6521 if test "${with_flex+set}" = set; then :
6526 # Check whether --with-bison was given.
6527 if test "${with_bison+set}" = set; then :
6528 withval=$with_bison;
6531 if test "$with_flex" = no ; then
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537 set dummy $ac_prog; ac_word=$2
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 $as_echo_n "checking for $ac_word... " >&6; }
6540 if test "${ac_cv_prog_V_LEX+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6543 if test -n "$V_LEX"; then
6544 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_V_LEX="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 V_LEX=$ac_cv_prog_V_LEX
6564 if test -n "$V_LEX"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_LEX" >&5
6566 $as_echo "$V_LEX" >&6; }
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6573 test -n "$V_LEX" && break
6575 test -n "$V_LEX" || V_LEX="lex"
6578 if test "$V_LEX" = flex ; then
6579 # The -V flag was added in 2.4
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex 2.4 or higher" >&5
6581 $as_echo_n "checking for flex 2.4 or higher... " >&6; }
6582 if test "${ac_cv_lbl_flex_v24+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6585 if flex -V >/dev/null 2>&1; then
6586 ac_cv_lbl_flex_v24=yes
6588 ac_cv_lbl_flex_v24=no
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_flex_v24" >&5
6593 $as_echo "$ac_cv_lbl_flex_v24" >&6; }
6594 if test $ac_cv_lbl_flex_v24 = no ; then
6595 s="2.4 or higher required"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring obsolete flex executable ($s)" >&5
6597 $as_echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6601 if test "$with_bison" = no ; then
6604 for ac_prog in bison
6606 # Extract the first word of "$ac_prog", so it can be a program name with args.
6607 set dummy $ac_prog; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if test "${ac_cv_prog_V_YACC+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6613 if test -n "$V_YACC"; then
6614 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_prog_V_YACC="$ac_prog"
6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 V_YACC=$ac_cv_prog_V_YACC
6634 if test -n "$V_YACC"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_YACC" >&5
6636 $as_echo "$V_YACC" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6643 test -n "$V_YACC" && break
6645 test -n "$V_YACC" || V_YACC="yacc"
6648 if test "$V_YACC" = bison ; then
6651 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
6653 $as_echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
6657 if test "$V_LEX" = flex -a -n "pcap_" ; then
6658 V_LEX="$V_LEX -Ppcap_"
6659 V_YACC="$V_YACC -p pcap_"
6661 if test "$V_LEX" = lex ; then
6662 # Some versions of lex can't handle the definitions section of scanner.l .
6663 # Try lexing it and complain if it can't deal.
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capable lex" >&5
6665 $as_echo_n "checking for capable lex... " >&6; }
6666 if test "${tcpdump_cv_capable_lex+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 if lex -t scanner.l > /dev/null 2>&1; then
6670 tcpdump_cv_capable_lex=yes
6672 tcpdump_cv_capable_lex=insufficient
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_cv_capable_lex" >&5
6676 $as_echo "$tcpdump_cv_capable_lex" >&6; }
6677 if test $tcpdump_cv_capable_lex = insufficient ; then
6678 as_fn_error $? "Your operating system's lex is insufficient to compile
6679 libpcap. flex is a lex replacement that has many advantages, including
6680 being able to compile libpcap. For more information, see
6681 http://www.gnu.org/software/flex/flex.html ." "$LINENO" 5
6686 # Assume, by default, no support for shared libraries and V7/BSD convention
6687 # for man pages (file formats in section 5, miscellaneous info in section 7).
6688 # Individual cases can override this.
6697 $as_echo "#define _SUN 1" >>confdefs.h
6701 # AIX makes it fun to build shared and static libraries,
6702 # because they're *both* ".a" archive libraries. We
6703 # build the static library for the benefit of the traditional
6704 # scheme of building libpcap and tcpdump in subdirectories of
6705 # the same directory, with tcpdump statically linked with the
6706 # libpcap in question, but we also build a shared library as
6707 # "libpcap.shareda" and install *it*, rather than the static
6708 # library, as "libpcap.a".
6716 # If we're using DLPI, applications will need to
6717 # use /lib/pse.exp if present, as we use the
6720 pseexe="/lib/pse.exp"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5
6722 $as_echo_n "checking for $pseexe... " >&6; }
6723 if test -f $pseexe ; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6725 $as_echo "yes" >&6; }
6732 # If we're using BPF, we need "-lodm" and "-lcfg", as
6733 # we use them to load the BPF module.
6742 V_CCOPT="$V_CCOPT -fno-common"
6743 # Check whether --enable-universal was given.
6744 if test "${enable_universal+set}" = set; then :
6745 enableval=$enable_universal;
6748 if test "$enable_universal" != "no"; then
6753 # Leopard. Build for 32-bit PowerPC, 64-bit
6754 # PowerPC, x86, and x86-64, with 32-bit PowerPC
6755 # first. (That's what Apple does.)
6757 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6758 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
6763 # Snow Leopard. Build for x86-64, x86, and
6764 # 32-bit PowerPC, with x86-64 first. (That's
6765 # what Apple does, even though Snow Leopard
6766 # doesn't run on PPC, so PPC libpcap runs under
6767 # Rosetta, and Rosetta doesn't support BPF
6768 # ioctls, so PPC programs can't do live
6771 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
6772 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
6777 # Lion. Build for x86-64 and x86, with x86-64
6778 # first. (That's probably what Apple does,
6779 # given that Rosetta is gone.)
6781 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
6782 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
6790 $as_echo "#define HAVE_HPUX9 1" >>confdefs.h
6794 # Use System V conventions for man pages.
6803 # Use System V conventions for man pages.
6812 # Use System V conventions for man pages.
6820 $as_echo "#define HAVE_HPUX10_20_OR_LATER 1" >>confdefs.h
6822 if test "`uname -m`" = "ia64"; then
6829 # "-b" builds a shared library; "+h" sets the soname.
6835 # Use System V conventions for man pages.
6843 # Use System V conventions for man pages.
6849 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
6853 # Compiler assumed to be GCC; run-time linker may require a -R
6856 if test "$libdir" != "/usr/lib"; then
6857 V_RFLAGS=-Wl,-R$libdir
6865 # Use System V conventions for man pages.
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SINIX compiler defines sinix" >&5
6873 $as_echo_n "checking if SINIX compiler defines sinix... " >&6; }
6874 if test "${ac_cv_cc_sinix_defined+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6888 if ac_fn_c_try_compile "$LINENO"; then :
6889 ac_cv_cc_sinix_defined=yes
6891 ac_cv_cc_sinix_defined=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_sinix_defined" >&5
6897 $as_echo "$ac_cv_cc_sinix_defined" >&6; }
6898 if test $ac_cv_cc_sinix_defined = no ; then
6900 $as_echo "#define sinix 1" >>confdefs.h
6907 $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
6912 # Use System V conventions for man pages.
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6927 if test -n "$RANLIB"; then
6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6950 $as_echo "$RANLIB" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6990 $as_echo "$ac_ct_RANLIB" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6996 if test "x$ac_ct_RANLIB" = x; then
6999 case $cross_compiling:$ac_tool_warned in
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7005 RANLIB=$ac_ct_RANLIB
7008 RANLIB="$ac_cv_prog_RANLIB"
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ar; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_AR+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$AR"; then
7020 ac_cv_prog_AR="$AR" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_AR="${ac_tool_prefix}ar"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 if test -n "$AR"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7042 $as_echo "$AR" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7050 if test -z "$ac_cv_prog_AR"; then
7052 # Extract the first word of "ar", so it can be a program name with args.
7053 set dummy ar; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7059 if test -n "$ac_ct_AR"; then
7060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_ac_ct_AR="ar"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7080 if test -n "$ac_ct_AR"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7082 $as_echo "$ac_ct_AR" >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7088 if test "x$ac_ct_AR" = x; then
7091 case $cross_compiling:$ac_tool_warned in
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7105 if test "${LBL_CFLAGS+set}" = set; then
7106 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7108 if test -f .devel ; then
7109 if test "$GCC" = yes ; then
7110 if test "${LBL_CFLAGS+set}" != set; then
7111 if test "$ac_cv_prog_cc_g" = yes ; then
7112 V_CCOPT="-g $V_CCOPT"
7114 V_CCOPT="$V_CCOPT -Wall"
7115 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7116 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
7123 V_CCOPT="$V_CCOPT -n32"
7130 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7132 if test -f $name ; then
7133 ln -s $name os-proto.h
7135 $as_echo "#define HAVE_OS_PROTO_H 1" >>confdefs.h
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find $name" >&5
7139 $as_echo "$as_me: WARNING: can't find $name" >&2;}
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5
7144 $as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; }
7145 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7151 # include <sys/types.h>
7152 # include <sys/socket.h>
7156 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 ac_cv_lbl_sockaddr_has_sa_len=yes
7164 ac_cv_lbl_sockaddr_has_sa_len=no
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7170 $as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7171 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7173 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
7178 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
7179 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7185 # include <sys/types.h>
7186 # include <sys/socket.h>
7190 u_int i = sizeof (struct sockaddr_storage)
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 ac_cv_lbl_has_sockaddr_storage=yes
7198 ac_cv_lbl_has_sockaddr_storage=no
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7204 $as_echo "$ac_cv_lbl_has_sockaddr_storage" >&6; }
7205 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7207 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7212 $as_echo_n "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... " >&6; }
7213 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 # include <sys/types.h>
7220 # include <sys/dlpi.h>
7221 # include <sys/dlpi_ext.h>
7225 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
7233 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7239 $as_echo "$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7240 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7242 $as_echo "#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1" >>confdefs.h
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5
7247 $as_echo_n "checking if unaligned accesses fail... " >&6; }
7248 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7254 # These are CPU types where:
7256 # the CPU faults on an unaligned access, but at least some
7257 # OSes that support that CPU catch the fault and simulate
7258 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7259 # the simulation is slow, so we don't want to use it;
7261 # the CPU, I infer (from the old
7263 # XXX: should also check that they don't do weird things (like on arm)
7265 # comment) doesn't fault on unaligned accesses, but doesn't
7266 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7268 # for whatever reason, the test program doesn't work
7269 # (this has been claimed to be the case for several of those
7270 # CPUs - I don't know what the problem is; the problem
7271 # was reported as "the test program dumps core" for SuperH,
7272 # but that's what the test program is *supposed* to do -
7273 # it dumps core before it writes anything, so the test
7274 # for an empty output file should find an empty output
7275 # file and conclude that unaligned accesses don't work).
7277 # This run-time test won't work if you're cross-compiling, so
7278 # in order to support cross-compiling for a particular CPU,
7279 # we have to wire in the list of CPU types anyway, as far as
7280 # I know, so perhaps we should just have a set of CPUs on
7281 # which we know it doesn't work, a set of CPUs on which we
7282 # know it does work, and have the script just fail on other
7283 # cpu types and update it when such a failure occurs.
7285 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
7286 ac_cv_lbl_unaligned_fail=yes
7290 cat >conftest.c <<EOF
7291 # include <sys/types.h>
7292 # include <sys/wait.h>
7294 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7299 /* avoid "core dumped" message */
7305 pid = waitpid(pid, &status, 0);
7308 exit(!WIFEXITED(status));
7311 i = *(unsigned int *)&a[1];
7316 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
7317 conftest.c $LIBS >/dev/null 2>&1
7318 if test ! -x conftest ; then
7319 ac_cv_lbl_unaligned_fail=yes
7321 ./conftest >conftest.out
7322 if test ! -s conftest.out ; then
7323 ac_cv_lbl_unaligned_fail=yes
7325 ac_cv_lbl_unaligned_fail=no
7328 rm -f -r conftest* core core.conftest
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_unaligned_fail" >&5
7334 $as_echo "$ac_cv_lbl_unaligned_fail" >&6; }
7335 if test $ac_cv_lbl_unaligned_fail = yes ; then
7337 $as_echo "#define LBL_ALIGN 1" >>confdefs.h
7342 # Makefile.in includes rules to generate version.h, so we assume
7343 # that it will be generated if autoconf is used.
7346 $as_echo "#define HAVE_VERSION_H 1" >>confdefs.h
7350 ln -s ${srcdir}/bpf/net net
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for USB sniffing support" >&5
7371 $as_echo_n "checking for USB sniffing support... " >&6; }
7375 $as_echo "#define PCAP_SUPPORT_USB 1" >>confdefs.h
7377 USB_SRC=pcap-usb-linux.c
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379 $as_echo "yes" >&6; }
7380 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
7381 if test $? -ne 0 ; then
7382 ac_usb_dev_name="usbmon"
7385 cat >>confdefs.h <<_ACEOF
7386 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
7390 $as_echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
7392 # Do we have a version of <linux/compiler.h> available?
7393 # If so, we might need it for <linux/usbdevice_fs.h>.
7395 for ac_header in linux/compiler.h
7397 ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
7398 if test "x$ac_cv_header_linux_compiler_h" = x""yes; then :
7399 cat >>confdefs.h <<_ACEOF
7400 #define HAVE_LINUX_COMPILER_H 1
7407 if test "$ac_cv_header_linux_compiler_h" = yes; then
7409 # Yes - include it when testing for <linux/usbdevice_fs.h>.
7411 for ac_header in linux/usbdevice_fs.h
7413 ac_fn_c_check_header_compile "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "#include <linux/compiler.h>
7415 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
7416 cat >>confdefs.h <<_ACEOF
7417 #define HAVE_LINUX_USBDEVICE_FS_H 1
7425 for ac_header in linux/usbdevice_fs.h
7427 ac_fn_c_check_header_mongrel "$LINENO" "linux/usbdevice_fs.h" "ac_cv_header_linux_usbdevice_fs_h" "$ac_includes_default"
7428 if test "x$ac_cv_header_linux_usbdevice_fs_h" = x""yes; then :
7429 cat >>confdefs.h <<_ACEOF
7430 #define HAVE_LINUX_USBDEVICE_FS_H 1
7438 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
7440 # OK, does it define bRequestType? Older versions of the kernel
7441 # define fields with names like "requesttype, "request", and
7442 # "value", rather than "bRequestType", "bRequest", and
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
7446 $as_echo_n "checking if usbdevfs_ctrltransfer struct has bRequestType member... " >&6; }
7447 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7453 $ac_includes_default
7454 #ifdef HAVE_SYS_BITYPES_H
7455 #include <sys/bitypes.h>
7457 #ifdef HAVE_LINUX_COMPILER_H
7458 #include <linux/compiler.h>
7460 #include <linux/usbdevice_fs.h>
7464 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
7472 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
7478 $as_echo "$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
7479 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
7481 $as_echo "#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1" >>confdefs.h
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform could support netfilter sniffing" >&5
7495 $as_echo_n "checking whether the platform could support netfilter sniffing... " >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499 $as_echo "yes" >&6; }
7501 # Life's too short to deal with trying to get this to compile
7502 # if you don't get the right types defined with
7503 # __KERNEL_STRICT_NAMES getting defined by some other include.
7505 # Check whether the includes Just Work. If not, don't turn on
7506 # netfilter support.
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile the netfilter support" >&5
7509 $as_echo_n "checking whether we can compile the netfilter support... " >&6; }
7510 if test "${ac_cv_netfilter_can_compile+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7516 $ac_includes_default
7517 #include <sys/socket.h>
7518 #include <linux/types.h>
7520 #include <linux/netlink.h>
7521 #include <linux/netfilter/nfnetlink.h>
7522 #include <linux/netfilter/nfnetlink_log.h>
7531 if ac_fn_c_try_compile "$LINENO"; then :
7532 ac_cv_netfilter_can_compile=yes
7534 ac_cv_netfilter_can_compile=no
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_netfilter_can_compile" >&5
7540 $as_echo "$ac_cv_netfilter_can_compile" >&6; }
7541 if test $ac_cv_netfilter_can_compile = yes ; then
7543 $as_echo "#define PCAP_SUPPORT_NETFILTER 1" >>confdefs.h
7545 NETFILTER_SRC=pcap-netfilter-linux.c
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7556 # Check whether --enable-bluetooth was given.
7557 if test "${enable_bluetooth+set}" = set; then :
7558 enableval=$enable_bluetooth;
7560 enable_bluetooth=yes
7564 if test "x$enable_bluetooth" != "xno" ; then
7567 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
7568 if test "x$ac_cv_header_bluetooth_bluetooth_h" = x""yes; then :
7571 $as_echo "#define PCAP_SUPPORT_BT 1" >>confdefs.h
7573 BT_SRC=pcap-bt-linux.c
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is supported" >&5
7575 $as_echo "$as_me: Bluetooth sniffing is supported" >&6;}
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
7579 $as_echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: no Bluetooth sniffing support implemented for $host_os" >&5
7587 $as_echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
7594 # Check whether --enable-canusb was given.
7595 if test "${enable_canusb+set}" = set; then :
7596 enableval=$enable_canusb; enable_canusb=yes
7600 if test "x$enable_canusb" != "xno" ; then
7603 ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
7604 if test "x$ac_cv_header_libusb_1_0_libusb_h" = x""yes; then :
7607 $as_echo "#define PCAP_SUPPORT_CANUSB 1" >>confdefs.h
7609 CANUSB_SRC=pcap-canusb-linux.c
7610 LIBS="-lusb-1.0 $LIBS"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is supported" >&5
7612 $as_echo "$as_me: canusb sniffing is supported" >&6;}
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
7616 $as_echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: no canusb support implemented for $host_os" >&5
7624 $as_echo "$as_me: no canusb support implemented for $host_os" >&6;}
7631 # Check whether --enable-can was given.
7632 if test "${enable_can+set}" = set; then :
7633 enableval=$enable_can;
7639 if test "x$enable_can" != "xno" ; then
7642 ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "#include <sys/socket.h>
7645 if test "x$ac_cv_header_linux_can_h" = x""yes; then :
7647 $as_echo "#define PCAP_SUPPORT_CAN 1" >>confdefs.h
7649 CAN_SRC=pcap-can-linux.c
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is supported" >&5
7651 $as_echo "$as_me: CAN sniffing is supported" >&6;}
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: CAN sniffing is not supported" >&5
7654 $as_echo "$as_me: CAN sniffing is not supported" >&6;}
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: no CAN sniffing support implemented for $host_os" >&5
7661 $as_echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
7670 for ac_header in linux/net_tstamp.h
7672 ac_fn_c_check_header_mongrel "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default"
7673 if test "x$ac_cv_header_linux_net_tstamp_h" = x""yes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_LINUX_NET_TSTAMP_H 1
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: no hardware timestamp support implemented for $host_os" >&5
7685 $as_echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
7689 # Find a good install program. We prefer a C program (faster),
7690 # so one script is as good as another. But avoid the broken or
7691 # incompatible versions:
7692 # SysV /etc/install, /usr/sbin/install
7693 # SunOS /usr/etc/install
7694 # IRIX /sbin/install
7696 # AmigaOS /C/install, which installs bootblocks on floppy discs
7697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7700 # OS/2's system install, which has a completely different semantic
7701 # ./install, which can be erroneously created by make from ./install.sh.
7702 # Reject install programs that cannot install multiple files.
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7704 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7705 if test -z "$INSTALL"; then
7706 if test "${ac_cv_path_install+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 # Account for people who put trailing slashes in PATH elements.
7715 case $as_dir/ in #((
7716 ./ | .// | /[cC]/* | \
7717 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7718 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7721 # OSF1 and SCO ODT 3.0 have their own names for install.
7722 # Don't use installbsd from OSF since it installs stuff as root
7724 for ac_prog in ginstall scoinst install; do
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7727 if test $ac_prog = install &&
7728 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7729 # AIX install. It has an incompatible calling convention.
7731 elif test $ac_prog = install &&
7732 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7733 # program-specific install script used by HP pwplus--don't use.
7736 rm -rf conftest.one conftest.two conftest.dir
7737 echo one > conftest.one
7738 echo two > conftest.two
7740 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7741 test -s conftest.one && test -s conftest.two &&
7742 test -s conftest.dir/conftest.one &&
7743 test -s conftest.dir/conftest.two
7745 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7758 rm -rf conftest.one conftest.two conftest.dir
7761 if test "${ac_cv_path_install+set}" = set; then
7762 INSTALL=$ac_cv_path_install
7764 # As a last resort, use the slow shell script. Don't cache a
7765 # value for INSTALL within a source directory, because that will
7766 # break other packages using the cache if that directory is
7767 # removed, or if the value is a relative name.
7768 INSTALL=$ac_install_sh
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7772 $as_echo "$INSTALL" >&6; }
7774 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7775 # It thinks the first close brace ends the variable substitution.
7776 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7778 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7780 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7783 ac_config_headers="$ac_config_headers config.h"
7786 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_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
7788 cat >confcache <<\_ACEOF
7789 # This file is a shell script that caches the results of configure
7790 # tests run on this system so they can be shared between configure
7791 # scripts and configure runs, see configure's option --config-cache.
7792 # It is not useful on other systems. If it contains results you don't
7793 # want to keep, you may remove or edit it.
7795 # config.status only pays attention to the cache file if you give it
7796 # the --recheck option to rerun configure.
7798 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7804 # The following way of writing the cache mishandles newlines in values,
7805 # but we know of no workaround that is simple, portable, and efficient.
7806 # So, we kill variables containing newlines.
7807 # Ultrix sh set writes to stderr and can't be redirected directly,
7808 # and sets the high bit in the cache file unless we assign to the vars.
7810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7811 eval ac_val=\$$ac_var
7815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7819 _ | IFS | as_nl) ;; #(
7820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7821 *) { eval $ac_var=; unset $ac_var;} ;;
7827 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7828 *${as_nl}ac_space=\ *)
7829 # `set' does not quote correctly, so add quotes: double-quote
7830 # substitution turns \\\\ into \\, and sed turns \\ into \.
7833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7836 # `set' quotes correctly as required by POSIX, so do not add quotes.
7837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7850 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7851 if test -w "$cache_file"; then
7852 test "x$cache_file" != "x/dev/null" &&
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7854 $as_echo "$as_me: updating cache $cache_file" >&6;}
7855 cat confcache >$cache_file
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7858 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7864 # Let make expand exec_prefix.
7865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7867 DEFS=-DHAVE_CONFIG_H
7872 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7873 # 1. Remove the extension, and $U if already installed.
7874 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7875 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7877 # will be set to the directory where LIBOBJS objects are built.
7878 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7879 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7883 LTLIBOBJS=$ac_ltlibobjs
7887 : ${CONFIG_STATUS=./config.status}
7889 ac_clean_files_save=$ac_clean_files
7890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7892 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7894 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7896 # Generated by $as_me.
7897 # Run this file to recreate the current configuration.
7898 # Compiler output produced by configure, useful for debugging
7899 # configure, is in config.log if it exists.
7905 SHELL=\${CONFIG_SHELL-$SHELL}
7908 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7909 ## -------------------- ##
7910 ## M4sh Initialization. ##
7911 ## -------------------- ##
7913 # Be more Bourne compatible
7914 DUALCASE=1; export DUALCASE # for MKS sh
7915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7919 # is contrary to our usage. Disable this feature.
7920 alias -g '${1+"$@"}'='"$@"'
7921 setopt NO_GLOB_SUBST
7923 case `(set -o) 2>/dev/null` in #(
7935 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7936 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7937 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7939 # Prefer a ksh shell builtin over an external printf program on Solaris,
7940 # but without wasting forks for bash or zsh.
7941 if test -z "$BASH_VERSION$ZSH_VERSION" \
7942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7943 as_echo='print -r --'
7944 as_echo_n='print -rn --'
7945 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7946 as_echo='printf %s\n'
7947 as_echo_n='printf %s'
7949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7951 as_echo_n='/usr/ucb/echo -n'
7953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7954 as_echo_n_body='eval
7958 expr "X$arg" : "X\\(.*\\)$as_nl";
7959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7963 export as_echo_n_body
7964 as_echo_n='sh -c $as_echo_n_body as_echo'
7967 as_echo='sh -c $as_echo_body as_echo'
7970 # The user is always right.
7971 if test "${PATH_SEPARATOR+set}" != set; then
7973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7981 # We need space, tab and new line, in precisely that order. Quoting is
7982 # there to prevent editors from complaining about space-tab.
7983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7984 # splitting by setting IFS to empty value.)
7987 # Find who we are. Look in the path if we contain no directory separator.
7989 *[\\/]* ) as_myself=$0 ;;
7990 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8001 # We did not find ourselves, most probably we were run as `sh COMMAND'
8002 # in which case we are not to be found in the path.
8003 if test "x$as_myself" = x; then
8006 if test ! -f "$as_myself"; then
8007 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8011 # Unset variables that we do not need and which cause bugs (e.g. in
8012 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8013 # suppresses any "Segmentation fault" message there. '((' could
8014 # trigger a bug in pdksh 5.2.14.
8015 for as_var in BASH_ENV ENV MAIL MAILPATH
8016 do eval test x\${$as_var+set} = xset \
8017 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8030 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8033 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8034 # ----------------------------------------
8035 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8036 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8037 # script with STATUS, using 1 if that was 0.
8040 as_status=$1; test $as_status -eq 0 && as_status=1
8042 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8043 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8045 $as_echo "$as_me: error: $2" >&2
8046 as_fn_exit $as_status
8050 # as_fn_set_status STATUS
8051 # -----------------------
8052 # Set $? to STATUS, without forking.
8056 } # as_fn_set_status
8060 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8070 # Portably unset VAR.
8073 { eval $1=; unset $1;}
8075 as_unset=as_fn_unset
8076 # as_fn_append VAR VALUE
8077 # ----------------------
8078 # Append the text in VALUE to the end of the definition contained in VAR. Take
8079 # advantage of any shell optimizations that allow amortized linear growth over
8080 # repeated appends, instead of the typical quadratic growth present in naive
8082 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8083 eval 'as_fn_append ()
8094 # as_fn_arith ARG...
8095 # ------------------
8096 # Perform arithmetic evaluation on the ARGs, and store the result in the
8097 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8098 # must be portable across $(()) and expr.
8099 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8100 eval 'as_fn_arith ()
8107 as_val=`expr "$@" || test $? -eq 1`
8112 if expr a : '\(a\)' >/dev/null 2>&1 &&
8113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8120 as_basename=basename
8125 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8131 as_me=`$as_basename -- "$0" ||
8132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8133 X"$0" : 'X\(//\)$' \| \
8134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8136 sed '/^.*\/\([^/][^/]*\)\/*$/{
8150 # Avoid depending upon Character Ranges.
8151 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8152 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8153 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8154 as_cr_digits='0123456789'
8155 as_cr_alnum=$as_cr_Letters$as_cr_digits
8157 ECHO_C= ECHO_N= ECHO_T=
8158 case `echo -n x` in #(((((
8160 case `echo 'xy\c'` in
8161 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8163 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8170 rm -f conf$$ conf$$.exe conf$$.file
8171 if test -d conf$$.dir; then
8172 rm -f conf$$.dir/conf$$.file
8175 mkdir conf$$.dir 2>/dev/null
8177 if (echo >conf$$.file) 2>/dev/null; then
8178 if ln -s conf$$.file conf$$ 2>/dev/null; then
8180 # ... but there are two gotchas:
8181 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8182 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8183 # In both cases, we have to default to `cp -p'.
8184 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8186 elif ln conf$$.file conf$$ 2>/dev/null; then
8194 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8195 rmdir conf$$.dir 2>/dev/null
8200 # Create "$as_dir" as a directory, including parents if necessary.
8205 -*) as_dir=./$as_dir;;
8207 test -d "$as_dir" || eval $as_mkdir_p || {
8211 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8212 *) as_qdir=$as_dir;;
8214 as_dirs="'$as_qdir' $as_dirs"
8215 as_dir=`$as_dirname -- "$as_dir" ||
8216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8217 X"$as_dir" : 'X\(//\)[^/]' \| \
8218 X"$as_dir" : 'X\(//\)$' \| \
8219 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8220 $as_echo X"$as_dir" |
8221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8238 test -d "$as_dir" && break
8240 test -z "$as_dirs" || eval "mkdir $as_dirs"
8241 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8245 if mkdir -p . 2>/dev/null; then
8246 as_mkdir_p='mkdir -p "$as_dir"'
8248 test -d ./-p && rmdir ./-p
8252 if test -x / >/dev/null 2>&1; then
8255 if ls -dL / >/dev/null 2>&1; then
8262 if test -d "$1"; then
8268 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8269 ???[sx]*):;;*)false;;esac;fi
8273 as_executable_p=$as_test_x
8275 # Sed expression to map a string onto a valid CPP name.
8276 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8278 # Sed expression to map a string onto a valid variable name.
8279 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8283 ## ----------------------------------- ##
8284 ## Main body of $CONFIG_STATUS script. ##
8285 ## ----------------------------------- ##
8287 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8290 # Save the log message, to keep $0 and so on meaningful, and to
8291 # report actual input values of CONFIG_FILES etc. instead of their
8292 # values after options handling.
8294 This file was extended by $as_me, which was
8295 generated by GNU Autoconf 2.67. Invocation command line was
8297 CONFIG_FILES = $CONFIG_FILES
8298 CONFIG_HEADERS = $CONFIG_HEADERS
8299 CONFIG_LINKS = $CONFIG_LINKS
8300 CONFIG_COMMANDS = $CONFIG_COMMANDS
8303 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8308 case $ac_config_files in *"
8309 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8312 case $ac_config_headers in *"
8313 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8318 # Files that config.status was made for.
8319 config_files="$ac_config_files"
8320 config_headers="$ac_config_headers"
8324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8326 \`$as_me' instantiates files and other configuration actions
8327 from templates according to the current configuration. Unless the files
8328 and actions are specified as TAGs, all are instantiated by default.
8330 Usage: $0 [OPTION]... [TAG]...
8332 -h, --help print this help, then exit
8333 -V, --version print version number and configuration settings, then exit
8334 --config print configuration, then exit
8335 -q, --quiet, --silent
8336 do not print progress messages
8337 -d, --debug don't remove temporary files
8338 --recheck update $as_me by reconfiguring in the same conditions
8339 --file=FILE[:TEMPLATE]
8340 instantiate the configuration file FILE
8341 --header=FILE[:TEMPLATE]
8342 instantiate the configuration header FILE
8344 Configuration files:
8347 Configuration headers:
8350 Report bugs to the package provider."
8353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8354 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8357 configured by $0, generated by GNU Autoconf 2.67,
8358 with options \\"\$ac_cs_config\\"
8360 Copyright (C) 2010 Free Software Foundation, Inc.
8361 This config.status script is free software; the Free Software Foundation
8362 gives unlimited permission to copy, distribute and modify it."
8367 test -n "\$AWK" || AWK=awk
8370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8371 # The default lists apply if the user does not specify any file.
8377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8394 # Handling of the options.
8395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8398 $as_echo "$ac_cs_version"; exit ;;
8399 --config | --confi | --conf | --con | --co | --c )
8400 $as_echo "$ac_cs_config"; exit ;;
8401 --debug | --debu | --deb | --de | --d | -d )
8403 --file | --fil | --fi | --f )
8406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8407 '') as_fn_error $? "missing file argument" ;;
8409 as_fn_append CONFIG_FILES " '$ac_optarg'"
8410 ac_need_defaults=false;;
8411 --header | --heade | --head | --hea )
8414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8417 ac_need_defaults=false;;
8419 # Conflict between --help and --header
8420 as_fn_error $? "ambiguous option: \`$1'
8421 Try \`$0 --help' for more information.";;
8422 --help | --hel | -h )
8423 $as_echo "$ac_cs_usage"; exit ;;
8424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8429 -*) as_fn_error $? "unrecognized option: \`$1'
8430 Try \`$0 --help' for more information." ;;
8432 *) as_fn_append ac_config_targets " $1"
8433 ac_need_defaults=false ;;
8439 ac_configure_extra_args=
8441 if $ac_cs_silent; then
8443 ac_configure_extra_args="$ac_configure_extra_args --silent"
8447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8448 if \$ac_cs_recheck; then
8449 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8452 CONFIG_SHELL='$SHELL'
8458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8463 ## Running $as_me. ##
8469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8474 # Handling of arguments.
8475 for ac_config_target in $ac_config_targets
8477 case $ac_config_target in
8478 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8480 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
8481 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
8482 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
8483 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
8484 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
8485 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
8486 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
8487 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
8488 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
8489 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
8490 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
8491 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
8492 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
8494 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8499 # If the user did not use the arguments to specify the items to instantiate,
8500 # then the envvar interface is used. Set only those that are not.
8501 # We use the long form for the default assignment because of an extremely
8502 # bizarre bug on SunOS 4.1.3.
8503 if $ac_need_defaults; then
8504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8508 # Have a temporary directory for convenience. Make it in the build tree
8509 # simply because there is no reason against having it here, and in addition,
8510 # creating and moving files from /tmp can sometimes cause problems.
8511 # Hook for its removal unless debugging.
8512 # Note that there is a small window in which the directory will not be cleaned:
8513 # after its creation but before its name has been assigned to `$tmp'.
8517 trap 'exit_status=$?
8518 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8520 trap 'as_fn_exit 1' 1 2 13 15
8522 # Create a (secure) tmp directory for tmp files.
8525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8526 test -n "$tmp" && test -d "$tmp"
8529 tmp=./conf$$-$RANDOM
8530 (umask 077 && mkdir "$tmp")
8531 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8533 # Set up the scripts for CONFIG_FILES section.
8534 # No need to generate them if there are no CONFIG_FILES.
8535 # This happens for instance with `./config.status config.h'.
8536 if test -n "$CONFIG_FILES"; then
8539 ac_cr=`echo X | tr X '\015'`
8540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8541 # But we know of no other shell where ac_cr would be empty at this
8542 # point, so we can use a bashism as a fallback.
8543 if test "x$ac_cr" = x; then
8544 eval ac_cr=\$\'\\r\'
8546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8553 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8558 echo "cat >conf$$subs.awk <<_ACEOF" &&
8559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8565 for ac_last_try in false false false false false :; do
8566 . ./conf$$subs.sh ||
8567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8570 if test $ac_delim_n = $ac_delim_num; then
8572 elif $ac_last_try; then
8573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8581 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8585 s/^/S["/; s/!.*/"]=/
8595 s/\(.\{148\}\)..*/\1/
8597 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8609 s/\(.\{148\}\)..*/\1/
8611 s/["\\]/\\&/g; s/^/"/; s/$/"/
8615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8620 ' <conf$$subs.awk | sed '
8625 ' >>$CONFIG_STATUS || ac_write_fail=1
8626 rm -f conf$$subs.awk
8627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8629 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8630 for (key in S) S_is_set[key] = 1
8636 nfields = split(line, field, "@")
8638 len = length(field[1])
8639 for (i = 2; i < nfields; i++) {
8641 keylen = length(key)
8642 if (S_is_set[key]) {
8644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8645 len += length(value) + length(field[++i])
8656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8661 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8665 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8666 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8667 # trailing colons and then remove the whole line if VPATH becomes empty
8668 # (actually we leave an empty line to preserve line numbers).
8669 if test "x$srcdir" = x.; then
8670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8689 fi # test -n "$CONFIG_FILES"
8691 # Set up the scripts for CONFIG_HEADERS section.
8692 # No need to generate them if there are no CONFIG_HEADERS.
8693 # This happens for instance with `./config.status Makefile'.
8694 if test -n "$CONFIG_HEADERS"; then
8695 cat >"$tmp/defines.awk" <<\_ACAWK ||
8699 # Transform confdefs.h into an awk script `defines.awk', embedded as
8700 # here-document in config.status, that substitutes the proper values into
8701 # config.h.in to produce config.h.
8703 # Create a delimiter string that does not exist in confdefs.h, to ease
8704 # handling of long lines.
8706 for ac_last_try in false false :; do
8707 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8708 if test -z "$ac_t"; then
8710 elif $ac_last_try; then
8711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8717 # For the awk script, D is an array of macro values keyed by name,
8718 # likewise P contains macro parameters if any. Preserve backslash
8719 # newline sequences.
8721 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8723 s/.\{148\}/&'"$ac_delim"'/g
8726 s/^[ ]*#[ ]*define[ ][ ]*/ /
8733 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8739 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8740 D["\1"]=" \3\\\\\\n"\\/p
8742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8747 s/.\{148\}/&'"$ac_delim"'/g
8752 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8755 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8757 ' <confdefs.h | sed '
8758 s/'"$ac_delim"'/"\\\
8759 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8762 for (key in D) D_is_set[key] = 1
8765 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8767 split(line, arg, " ")
8768 if (arg[1] == "#") {
8772 defundef = substr(arg[1], 2)
8775 split(mac1, mac2, "(") #)
8777 prefix = substr(line, 1, index(line, defundef) - 1)
8778 if (D_is_set[macro]) {
8779 # Preserve the white space surrounding the "#".
8780 print prefix "define", macro P[macro] D[macro]
8783 # Replace #undef with comments. This is necessary, for example,
8784 # in the case of _POSIX_SOURCE, which is predefined and required
8785 # on some systems where configure will not decide to define it.
8786 if (defundef == "undef") {
8787 print "/*", prefix defundef, macro, "*/"
8795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8797 fi # test -n "$CONFIG_HEADERS"
8800 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8805 :[FHLC]) ac_mode=$ac_tag; continue;;
8807 case $ac_mode$ac_tag in
8809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8810 :[FH]-) ac_tag=-:-;;
8811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8828 -) ac_f="$tmp/stdin";;
8829 *) # Look for the file first in the build tree, then in the source tree
8830 # (if the path is not absolute). The absolute path cannot be DOS-style,
8831 # because $ac_f cannot contain `:'.
8835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
8839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8840 as_fn_append ac_file_inputs " '$ac_f'"
8843 # Let's still pretend it is `configure' which instantiates (i.e., don't
8844 # use $as_me), people would be surprised to read:
8845 # /* config.h. Generated by config.status. */
8846 configure_input='Generated from '`
8847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8849 if test x"$ac_file" != x-; then
8850 configure_input="$ac_file. $configure_input"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8852 $as_echo "$as_me: creating $ac_file" >&6;}
8854 # Neutralize special characters interpreted by sed in replacement strings.
8855 case $configure_input in #(
8856 *\&* | *\|* | *\\* )
8857 ac_sed_conf_input=`$as_echo "$configure_input" |
8858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8859 *) ac_sed_conf_input=$configure_input;;
8863 *:-:* | *:-) cat >"$tmp/stdin" \
8864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8869 ac_dir=`$as_dirname -- "$ac_file" ||
8870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8871 X"$ac_file" : 'X\(//\)[^/]' \| \
8872 X"$ac_file" : 'X\(//\)$' \| \
8873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8874 $as_echo X"$ac_file" |
8875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8892 as_dir="$ac_dir"; as_fn_mkdir_p
8896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8899 # A ".." for each directory in $ac_dir_suffix.
8900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8901 case $ac_top_builddir_sub in
8902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8906 ac_abs_top_builddir=$ac_pwd
8907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8908 # for backward compatibility:
8909 ac_top_builddir=$ac_top_build_prefix
8912 .) # We are building in place.
8914 ac_top_srcdir=$ac_top_builddir_sub
8915 ac_abs_top_srcdir=$ac_pwd ;;
8916 [\\/]* | ?:[\\/]* ) # Absolute name.
8917 ac_srcdir=$srcdir$ac_dir_suffix;
8918 ac_top_srcdir=$srcdir
8919 ac_abs_top_srcdir=$srcdir ;;
8921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8922 ac_top_srcdir=$ac_top_build_prefix$srcdir
8923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8941 # If the template does not know about datarootdir, expand it.
8942 # FIXME: This hack should be removed a few years after 2.60.
8943 ac_datarootdir_hack=; ac_datarootdir_seen=
8954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8955 *datarootdir*) ac_datarootdir_seen=yes;;
8956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8961 ac_datarootdir_hack='
8962 s&@datadir@&$datadir&g
8963 s&@docdir@&$docdir&g
8964 s&@infodir@&$infodir&g
8965 s&@localedir@&$localedir&g
8966 s&@mandir@&$mandir&g
8967 s&\\\${datarootdir}&$datarootdir&g' ;;
8971 # Neutralize VPATH when `$srcdir' = `.'.
8972 # Shell code in configure.ac might set extrasub.
8973 # FIXME: do we really want to maintain this feature?
8974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8975 ac_sed_extra="$ac_vpsub
8978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8981 s|@configure_input@|$ac_sed_conf_input|;t t
8982 s&@top_builddir@&$ac_top_builddir_sub&;t t
8983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8984 s&@srcdir@&$ac_srcdir&;t t
8985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8986 s&@top_srcdir@&$ac_top_srcdir&;t t
8987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8988 s&@builddir@&$ac_builddir&;t t
8989 s&@abs_builddir@&$ac_abs_builddir&;t t
8990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8991 s&@INSTALL@&$ac_INSTALL&;t t
8992 $ac_datarootdir_hack
8994 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8997 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8998 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8999 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9001 which seems to be undefined. Please make sure it is defined" >&5
9002 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9003 which seems to be undefined. Please make sure it is defined" >&2;}
9007 -) cat "$tmp/out" && rm -f "$tmp/out";;
9008 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9016 if test x"$ac_file" != x-; then
9018 $as_echo "/* $configure_input */" \
9019 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9020 } >"$tmp/config.h" \
9021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9022 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9024 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9027 mv "$tmp/config.h" "$ac_file" \
9028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9031 $as_echo "/* $configure_input */" \
9032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9033 || as_fn_error $? "could not create -" "$LINENO" 5
9045 ac_clean_files=$ac_clean_files_save
9047 test $ac_write_fail = 0 ||
9048 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9051 # configure is writing to config.log, and then calls config.status.
9052 # config.status does its own redirection, appending to config.log.
9053 # Unfortunately, on DOS this fails, as config.log is still kept open
9054 # by configure, so config.status won't be able to write to it; its
9055 # output is simply discarded. So we exec the FD to /dev/null,
9056 # effectively closing config.log, so it can be properly (re)opened and
9057 # appended to by config.status. When coming back to configure, we
9058 # need to make the FD available again.
9059 if test "$no_create" != yes; then
9061 ac_config_status_args=
9062 test "$silent" = yes &&
9063 ac_config_status_args="$ac_config_status_args --quiet"
9065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9068 # would make configure fail if this is the last instruction.
9069 $ac_cs_success || as_fn_exit 1
9071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9073 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9077 if test -f .devel ; then