2 # From configure.in Revision: 1.120.2.13 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE
=1; export DUALCASE
# for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix
*) set -o posix
;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits
='0123456789'
39 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
54 # Support unset when possible.
55 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself
=$0 ;;
74 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir
=.
79 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x
; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var
in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C
; export $as_var
112 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
124 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me
=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x
; then
156 if (eval ":") 2>/dev
/null
; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev
/null
; then
222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
223 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir
=.
229 for as_base
in sh bash ksh sh5
; do
230 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
237 for as_shell
in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix
*) set -o posix
;;
259 CONFIG_SHELL
=$as_shell
261 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix
*) set -o posix
;;
287 as_func_ret_success
() {
290 as_func_ret_failure
() {
295 if as_func_success
; then
299 echo as_func_success failed.
302 if as_func_failure
; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success
; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure
; then
316 echo as_func_ret_failure succeeded.
319 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) ||
{ (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x
; then
344 for as_var
in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no
; then
353 echo This
script requires a shell
more modern than all the
354 echo shells that I found on your system. Please
install a
355 echo modern shell
, or manually run the
script under such a
356 echo shell
if you
do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") ||
{
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system
,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x
"$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
473 ECHO_C
= ECHO_N
= ECHO_T
=
477 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
484 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
491 rm -f conf$$ conf$$.exe conf$$.
file
492 if test -d conf$$.dir
; then
493 rm -f conf$$.dir
/conf$$.
file
499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
513 rmdir conf$$.dir
2>/dev
/null
515 if mkdir
-p .
2>/dev
/null
; then
518 test -d .
/-p && rmdir .
/-p
522 if test -x / >/dev
/null
2>&1; then
525 if ls -dL / >/dev
/null
2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p
=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev
/null
6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix
=/usr
/local
565 ac_config_libobj_dir
=.
571 SHELL
=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file
="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
696 ac_precious_vars
='build_alias
707 # Initialize some variables set by options.
709 ac_init_version
=false
710 # The variables have the same names as the options, with
711 # dashes changed to underlines.
719 program_transform_name
=s
,x
,x
,
727 # Installation directory options.
728 # These are left unexpanded so users can "make install exec_prefix=/foo"
729 # and all the variables that are supposed to be based on exec_prefix
730 # by default will actually change.
731 # Use braces instead of parens because sh, perl, etc. also accept them.
732 # (The list follows the same order as the GNU Coding Standards.)
733 bindir
='${exec_prefix}/bin'
734 sbindir
='${exec_prefix}/sbin'
735 libexecdir
='${exec_prefix}/libexec'
736 datarootdir
='${prefix}/share'
737 datadir
='${datarootdir}'
738 sysconfdir
='${prefix}/etc'
739 sharedstatedir
='${prefix}/com'
740 localstatedir
='${prefix}/var'
741 includedir
='${prefix}/include'
742 oldincludedir
='/usr/include'
743 docdir
='${datarootdir}/doc/${PACKAGE}'
744 infodir
='${datarootdir}/info'
749 libdir
='${exec_prefix}/lib'
750 localedir
='${datarootdir}/locale'
751 mandir
='${datarootdir}/man'
757 # If the previous option needs an argument, assign it.
758 if test -n "$ac_prev"; then
759 eval $ac_prev=\
$ac_option
765 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769 # Accept the important Cygnus configure options, so we can diagnose typos.
771 case $ac_dashdash$ac_option in
775 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
777 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
780 -build |
--build |
--buil |
--bui |
--bu)
781 ac_prev
=build_alias
;;
782 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
783 build_alias
=$ac_optarg ;;
785 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
786 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
787 ac_prev
=cache_file
;;
788 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
789 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
790 cache_file
=$ac_optarg ;;
793 cache_file
=config.cache
;;
795 -datadir |
--datadir |
--datadi |
--datad)
797 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
798 datadir
=$ac_optarg ;;
800 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
801 |
--dataroo |
--dataro |
--datar)
802 ac_prev
=datarootdir
;;
803 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
804 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
805 datarootdir
=$ac_optarg ;;
807 -disable-* |
--disable-*)
808 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
811 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
812 { (exit 1); exit 1; }; }
813 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
814 eval enable_
$ac_feature=no
;;
816 -docdir |
--docdir |
--docdi |
--doc |
--do)
818 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
821 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
823 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
826 -enable-* |
--enable-*)
827 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_
$ac_feature=\
$ac_optarg ;;
835 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
836 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
837 |
--exec |
--exe |
--ex)
838 ac_prev
=exec_prefix
;;
839 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
840 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
841 |
--exec=* |
--exe=* |
--ex=*)
842 exec_prefix
=$ac_optarg ;;
844 -gas |
--gas |
--ga |
--g)
845 # Obsolete; use --with-gas.
848 -help |
--help |
--hel |
--he |
-h)
850 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
851 ac_init_help
=recursive
;;
852 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
853 ac_init_help
=short
;;
855 -host |
--host |
--hos |
--ho)
856 ac_prev
=host_alias
;;
857 -host=* |
--host=* |
--hos=* |
--ho=*)
858 host_alias
=$ac_optarg ;;
860 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
862 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
864 htmldir
=$ac_optarg ;;
866 -includedir |
--includedir |
--includedi |
--included |
--include \
867 |
--includ |
--inclu |
--incl |
--inc)
868 ac_prev
=includedir
;;
869 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
870 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
871 includedir
=$ac_optarg ;;
873 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
875 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
876 infodir
=$ac_optarg ;;
878 -libdir |
--libdir |
--libdi |
--libd)
880 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
883 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
884 |
--libexe |
--libex |
--libe)
885 ac_prev
=libexecdir
;;
886 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
887 |
--libexe=* |
--libex=* |
--libe=*)
888 libexecdir
=$ac_optarg ;;
890 -localedir |
--localedir |
--localedi |
--localed |
--locale)
892 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
893 localedir
=$ac_optarg ;;
895 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
896 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
897 ac_prev
=localstatedir
;;
898 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
899 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
900 localstatedir
=$ac_optarg ;;
902 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
904 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
908 # Obsolete; use --without-fp.
911 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
912 |
--no-cr |
--no-c |
-n)
915 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
916 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
919 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
920 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
921 |
--oldin |
--oldi |
--old |
--ol |
--o)
922 ac_prev
=oldincludedir
;;
923 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
924 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
925 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
926 oldincludedir
=$ac_optarg ;;
928 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
930 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
933 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
934 |
--program-pre |
--program-pr |
--program-p)
935 ac_prev
=program_prefix
;;
936 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
937 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
938 program_prefix
=$ac_optarg ;;
940 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
941 |
--program-suf |
--program-su |
--program-s)
942 ac_prev
=program_suffix
;;
943 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
944 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
945 program_suffix
=$ac_optarg ;;
947 -program-transform-name |
--program-transform-name \
948 |
--program-transform-nam |
--program-transform-na \
949 |
--program-transform-n |
--program-transform- \
950 |
--program-transform |
--program-transfor \
951 |
--program-transfo |
--program-transf \
952 |
--program-trans |
--program-tran \
953 |
--progr-tra |
--program-tr |
--program-t)
954 ac_prev
=program_transform_name
;;
955 -program-transform-name=* |
--program-transform-name=* \
956 |
--program-transform-nam=* |
--program-transform-na=* \
957 |
--program-transform-n=* |
--program-transform-=* \
958 |
--program-transform=* |
--program-transfor=* \
959 |
--program-transfo=* |
--program-transf=* \
960 |
--program-trans=* |
--program-tran=* \
961 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
962 program_transform_name
=$ac_optarg ;;
964 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
966 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
969 -psdir |
--psdir |
--psdi |
--psd |
--ps)
971 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
974 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
975 |
-silent |
--silent |
--silen |
--sile |
--sil)
978 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
980 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
982 sbindir
=$ac_optarg ;;
984 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
985 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
986 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
988 ac_prev
=sharedstatedir
;;
989 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
990 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
991 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
993 sharedstatedir
=$ac_optarg ;;
995 -site |
--site |
--sit)
997 -site=* |
--site=* |
--sit=*)
1000 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1002 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1003 srcdir
=$ac_optarg ;;
1005 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1006 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1007 ac_prev
=sysconfdir
;;
1008 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1009 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1010 sysconfdir
=$ac_optarg ;;
1012 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1013 ac_prev
=target_alias
;;
1014 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1015 target_alias
=$ac_optarg ;;
1017 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1020 -version |
--version |
--versio |
--versi |
--vers |
-V)
1021 ac_init_version
=: ;;
1024 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1027 { echo "$as_me: error: invalid package name: $ac_package" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1030 eval with_
$ac_package=\
$ac_optarg ;;
1032 -without-* |
--without-*)
1033 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_
$ac_package=no
;;
1042 # Obsolete; use --with-x.
1045 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1046 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1047 ac_prev
=x_includes
;;
1048 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1049 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1050 x_includes
=$ac_optarg ;;
1052 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1053 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1054 ac_prev
=x_libraries
;;
1055 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1056 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1057 x_libraries
=$ac_optarg ;;
1059 -*) { echo "$as_me: error: unrecognized option: $ac_option
1060 Try \`$0 --help' for more information." >&2
1061 { (exit 1); exit 1; }; }
1065 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1068 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1069 { (exit 1); exit 1; }; }
1070 eval $ac_envvar=\
$ac_optarg
1071 export $ac_envvar ;;
1074 # FIXME: should be removed in autoconf 3.0.
1075 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1077 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1084 if test -n "$ac_prev"; then
1085 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1086 { echo "$as_me: error: missing argument to $ac_option" >&2
1087 { (exit 1); exit 1; }; }
1090 # Be sure to have absolute directory names.
1091 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1092 datadir sysconfdir sharedstatedir localstatedir includedir \
1093 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1094 libdir localedir mandir
1096 eval ac_val
=\$
$ac_var
1098 [\\/$
]* | ?
:[\\/]* ) continue;;
1099 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1101 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1102 { (exit 1); exit 1; }; }
1105 # There might be people who depend on the old broken behavior: `$host'
1106 # used to hold the argument of --host etc.
1107 # FIXME: To remove some day.
1110 target
=$target_alias
1112 # FIXME: To remove some day.
1113 if test "x$host_alias" != x
; then
1114 if test "x$build_alias" = x
; then
1115 cross_compiling
=maybe
1116 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1117 If a cross compiler is detected then cross compile mode will be used." >&2
1118 elif test "x$build_alias" != "x$host_alias"; then
1124 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1126 test "$silent" = yes && exec 6>/dev
/null
1129 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1130 ac_ls_di
=`ls -di .` &&
1131 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1132 { echo "$as_me: error: Working directory cannot be determined" >&2
1133 { (exit 1); exit 1; }; }
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135 { echo "$as_me: error: pwd does not report name of working directory" >&2
1136 { (exit 1); exit 1; }; }
1139 # Find the source files, if location was not specified.
1140 if test -z "$srcdir"; then
1141 ac_srcdir_defaulted
=yes
1142 # Try the directory containing this script, then the parent directory.
1143 ac_confdir
=`$as_dirname -- "$0" ||
1144 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1145 X"$0" : 'X\(//\)[^/]' \| \
1146 X"$0" : 'X\(//\)$' \| \
1147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1171 ac_srcdir_defaulted
=no
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1174 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1175 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1176 { (exit 1); exit 1; }; }
1178 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1180 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1181 { (exit 1); exit 1; }; }
1183 # When building in place, set srcdir=.
1184 if test "$ac_abs_confdir" = "$ac_pwd"; then
1187 # Remove unnecessary trailing slashes from srcdir.
1188 # Double slashes in file names in object file debugging info
1189 # mess up M-x gdb in Emacs.
1191 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 for ac_var
in $ac_precious_vars; do
1194 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1195 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1196 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1197 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1201 # Report the --help message.
1203 if test "$ac_init_help" = "long"; then
1204 # Omit some internal or obsolete options to make the list less imposing.
1205 # This message is too long to be a string in the A/UX 3.1 sh.
1207 \`configure' configures this package to adapt to many kinds of systems.
1209 Usage: $0 [OPTION]... [VAR=VALUE]...
1211 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1212 VAR=VALUE. See below for descriptions of some of the useful variables.
1214 Defaults for the options are specified in brackets.
1217 -h, --help display this help and exit
1218 --help=short display options specific to this package
1219 --help=recursive display the short help of all the included packages
1220 -V, --version display version information and exit
1221 -q, --quiet, --silent do not print \`checking...' messages
1222 --cache-file=FILE cache test results in FILE [disabled]
1223 -C, --config-cache alias for \`--cache-file=config.cache'
1224 -n, --no-create do not create output files
1225 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1227 Installation directories:
1228 --prefix=PREFIX install architecture-independent files in PREFIX
1229 [$ac_default_prefix]
1230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1233 By default, \`make install' will install all the files in
1234 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1235 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1236 for instance \`--prefix=\$HOME'.
1238 For better control, use the options below.
1240 Fine tuning of the installation directories:
1241 --bindir=DIR user executables [EPREFIX/bin]
1242 --sbindir=DIR system admin executables [EPREFIX/sbin]
1243 --libexecdir=DIR program executables [EPREFIX/libexec]
1244 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1245 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1246 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1247 --libdir=DIR object code libraries [EPREFIX/lib]
1248 --includedir=DIR C header files [PREFIX/include]
1249 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1250 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1251 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1252 --infodir=DIR info documentation [DATAROOTDIR/info]
1253 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1254 --mandir=DIR man documentation [DATAROOTDIR/man]
1255 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1256 --htmldir=DIR html documentation [DOCDIR]
1257 --dvidir=DIR dvi documentation [DOCDIR]
1258 --pdfdir=DIR pdf documentation [DOCDIR]
1259 --psdir=DIR ps documentation [DOCDIR]
1265 --build=BUILD configure
for building on BUILD
[guessed
]
1266 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1267 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1271 if test -n "$ac_init_help"; then
1276 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1277 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1278 --disable-protochain disable
\"protochain
\" insn
1279 --enable-ipv6 build IPv6-capable version
1280 --enable-optimizer-dbg build optimizer debugging code
1281 --enable-yydebug build parser debugging code
1284 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1285 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1286 --without-gcc don
't use gcc
1287 --with-pcap=TYPE use packet capture TYPE
1288 --with-dag[=DIR] include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1289 --with-dag-includes=DIR Endace DAG include directory
1290 --with-dag-libraries=DIR Endace DAG library directory
1291 --with-septel[=DIR] include Septel support (located in directory DIR, if supplied). default=yes, on Linux, if present
1292 --without-flex don't use flex
1293 --without-bison don
't use bison
1295 Some influential environment variables:
1296 CC C compiler command
1297 CFLAGS C compiler flags
1298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1299 nonstandard directory <lib dir>
1300 LIBS libraries to pass to the linker, e.g. -l<library>
1301 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1302 you have headers in a nonstandard directory <include dir>
1305 Use these variables to override the choices made by `configure' or to
help
1306 it to
find libraries and programs with nonstandard names
/locations.
1312 if test "$ac_init_help" = "recursive"; then
1313 # If there are subdirs, report their specific --help.
1314 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1315 test -d "$ac_dir" ||
continue
1319 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1321 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1322 # A ".." for each directory in $ac_dir_suffix.
1323 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1324 case $ac_top_builddir_sub in
1325 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1326 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1329 ac_abs_top_builddir
=$ac_pwd
1330 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1331 # for backward compatibility:
1332 ac_top_builddir
=$ac_top_build_prefix
1335 .
) # We are building in place.
1337 ac_top_srcdir
=$ac_top_builddir_sub
1338 ac_abs_top_srcdir
=$ac_pwd ;;
1339 [\\/]* | ?
:[\\/]* ) # Absolute name.
1340 ac_srcdir
=$srcdir$ac_dir_suffix;
1341 ac_top_srcdir
=$srcdir
1342 ac_abs_top_srcdir
=$srcdir ;;
1344 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1345 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1346 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1348 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1350 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1351 # Check for guested configure.
1352 if test -f "$ac_srcdir/configure.gnu"; then
1354 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1355 elif test -f "$ac_srcdir/configure"; then
1357 $SHELL "$ac_srcdir/configure" --help=recursive
1359 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1361 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1365 test -n "$ac_init_help" && exit $ac_status
1366 if $ac_init_version; then
1369 generated by GNU Autoconf
2.61
1371 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1372 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1373 This configure
script is free software
; the Free Software Foundation
1374 gives unlimited permission to copy
, distribute and modify it.
1378 cat >config.log
<<_ACEOF
1379 This file contains any messages produced by compilers while
1380 running configure, to aid debugging if configure makes a mistake.
1382 It was created by $as_me, which was
1383 generated by GNU Autoconf 2.61. Invocation command line was
1395 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1396 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1397 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1398 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1399 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1401 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1402 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1404 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1405 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1406 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1407 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1408 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1409 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1410 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1418 test -z "$as_dir" && as_dir
=.
1419 echo "PATH: $as_dir"
1435 # Keep a trace of the command line.
1436 # Strip out --no-create and --no-recursion so they do not pile up.
1437 # Strip out --silent because we don't want to record it for future runs.
1438 # Also quote any args containing shell meta-characters.
1439 # Make two passes to allow for proper duplicate-argument suppression.
1443 ac_must_keep_next
=false
1449 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1450 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1451 |
-silent |
--silent |
--silen |
--sile |
--sil)
1454 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1457 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1459 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1460 if test $ac_must_keep_next = true
; then
1461 ac_must_keep_next
=false
# Got value, back to normal.
1464 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1465 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1466 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1467 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1468 case "$ac_configure_args0 " in
1469 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1472 -* ) ac_must_keep_next
=true
;;
1475 ac_configure_args
="$ac_configure_args '$ac_arg'"
1480 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1481 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1483 # When interrupted or exit'd, cleanup temporary files, and complete
1484 # config.log. We remove comments because anyway the quotes in there
1485 # would cause problems or look ugly.
1486 # WARNING: Use '\'' to represent an apostrophe within the trap.
1487 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1488 trap 'exit_status=$?
1489 # Save into config.log some information that might help in debugging.
1494 ## ---------------- ##
1495 ## Cache variables. ##
1496 ## ---------------- ##
1499 # The following way of writing the cache mishandles newlines in values,
1501 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1502 eval ac_val=\$$ac_var
1506 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1507 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1510 _ | IFS | as_nl) ;; #(
1511 *) $as_unset $ac_var ;;
1516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1517 *${as_nl}ac_space=\ *)
1519 "s/'\''/'\''\\\\'\'''\''/g;
1520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1531 ## ----------------- ##
1532 ## Output variables. ##
1533 ## ----------------- ##
1536 for ac_var in $ac_subst_vars
1538 eval ac_val=\$$ac_var
1540 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1542 echo "$ac_var='\''$ac_val'\''"
1546 if test -n "$ac_subst_files"; then
1548 ## ------------------- ##
1549 ## File substitutions. ##
1550 ## ------------------- ##
1553 for ac_var
in $ac_subst_files
1555 eval ac_val
=\$
$ac_var
1557 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1559 echo "$ac_var='\''$ac_val'\''"
1564 if test -s confdefs.h; then
1574 test "$ac_signal" != 0 &&
1575 echo "$as_me: caught signal $ac_signal"
1576 echo "$as_me: exit $exit_status"
1578 rm -f core *.core core.conftest.* &&
1579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1582 for ac_signal
in 1 2 13 15; do
1583 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1588 rm -f -r conftest
* confdefs.h
1590 # Predefined preprocessor variables.
1592 cat >>confdefs.h
<<_ACEOF
1593 #define PACKAGE_NAME "$PACKAGE_NAME"
1597 cat >>confdefs.h
<<_ACEOF
1598 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1602 cat >>confdefs.h
<<_ACEOF
1603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1607 cat >>confdefs.h
<<_ACEOF
1608 #define PACKAGE_STRING "$PACKAGE_STRING"
1612 cat >>confdefs.h
<<_ACEOF
1613 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1617 # Let the site file select an alternate cache file if it wants to.
1618 # Prefer explicitly selected file to automatically selected ones.
1619 if test -n "$CONFIG_SITE"; then
1620 set x
"$CONFIG_SITE"
1621 elif test "x$prefix" != xNONE
; then
1622 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1624 set x
"$ac_default_prefix/share/config.site" \
1625 "$ac_default_prefix/etc/config.site"
1630 if test -r "$ac_site_file"; then
1631 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1632 echo "$as_me: loading site script $ac_site_file" >&6;}
1633 sed 's/^/| /' "$ac_site_file" >&5
1638 if test -r "$cache_file"; then
1639 # Some versions of bash will fail to source /dev/null (special
1640 # files actually), so we avoid doing that.
1641 if test -f "$cache_file"; then
1642 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1643 echo "$as_me: loading cache $cache_file" >&6;}
1645 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1646 *) .
"./$cache_file";;
1650 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1651 echo "$as_me: creating cache $cache_file" >&6;}
1655 # Check that the precious variables saved in the cache have kept the same
1657 ac_cache_corrupted
=false
1658 for ac_var
in $ac_precious_vars; do
1659 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1660 eval ac_new_set
=\
$ac_env_${ac_var}_set
1661 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1662 eval ac_new_val
=\
$ac_env_${ac_var}_value
1663 case $ac_old_set,$ac_new_set in
1665 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1666 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1667 ac_cache_corrupted
=: ;;
1669 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1670 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1671 ac_cache_corrupted
=: ;;
1674 if test "x$ac_old_val" != "x$ac_new_val"; then
1675 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1676 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1677 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1678 echo "$as_me: former value: $ac_old_val" >&2;}
1679 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1680 echo "$as_me: current value: $ac_new_val" >&2;}
1681 ac_cache_corrupted
=:
1684 # Pass precious variables to config.status.
1685 if test "$ac_new_set" = set; then
1687 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 *) ac_arg
=$ac_var=$ac_new_val ;;
1690 case " $ac_configure_args " in
1691 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1692 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1696 if $ac_cache_corrupted; then
1697 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1698 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1699 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1700 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1701 { (exit 1); exit 1; }; }
1721 ac_cpp
='$CPP $CPPFLAGS'
1722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1729 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1730 if test -f "$ac_dir/install-sh"; then
1732 ac_install_sh
="$ac_aux_dir/install-sh -c"
1734 elif test -f "$ac_dir/install.sh"; then
1736 ac_install_sh
="$ac_aux_dir/install.sh -c"
1738 elif test -f "$ac_dir/shtool"; then
1740 ac_install_sh
="$ac_aux_dir/shtool install -c"
1744 if test -z "$ac_aux_dir"; then
1745 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1746 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1747 { (exit 1); exit 1; }; }
1750 # These three variables are undocumented and unsupported,
1751 # and are intended to be withdrawn in a future Autoconf release.
1752 # They can cause serious problems if a builder's source tree is in a directory
1753 # whose full name contains unusual characters.
1754 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1755 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1756 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1759 # Make sure we can run config.sub.
1760 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
1761 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1762 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1763 { (exit 1); exit 1; }; }
1765 { echo "$as_me:$LINENO: checking build system type" >&5
1766 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1767 if test "${ac_cv_build+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 ac_build_alias
=$build_alias
1771 test "x$ac_build_alias" = x
&&
1772 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
1773 test "x$ac_build_alias" = x
&&
1774 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1775 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1776 { (exit 1); exit 1; }; }
1777 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1779 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1783 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1784 echo "${ECHO_T}$ac_cv_build" >&6; }
1785 case $ac_cv_build in
1787 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1788 echo "$as_me: error: invalid value of canonical build" >&2;}
1789 { (exit 1); exit 1; }; };;
1792 ac_save_IFS
=$IFS; IFS
='-'
1798 # Remember, the first character of IFS is used to create $*,
1799 # except with old shells:
1802 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
1805 { echo "$as_me:$LINENO: checking host system type" >&5
1806 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1807 if test "${ac_cv_host+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 if test "x$host_alias" = x
; then
1811 ac_cv_host
=$ac_cv_build
1813 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1814 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1815 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1816 { (exit 1); exit 1; }; }
1820 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1821 echo "${ECHO_T}$ac_cv_host" >&6; }
1824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1825 echo "$as_me: error: invalid value of canonical host" >&2;}
1826 { (exit 1); exit 1; }; };;
1829 ac_save_IFS
=$IFS; IFS
='-'
1835 # Remember, the first character of IFS is used to create $*,
1836 # except with old shells:
1839 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
1842 { echo "$as_me:$LINENO: checking target system type" >&5
1843 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1844 if test "${ac_cv_target+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test "x$target_alias" = x
; then
1848 ac_cv_target
=$ac_cv_host
1850 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1853 { (exit 1); exit 1; }; }
1857 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1858 echo "${ECHO_T}$ac_cv_target" >&6; }
1859 case $ac_cv_target in
1861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1862 echo "$as_me: error: invalid value of canonical target" >&2;}
1863 { (exit 1); exit 1; }; };;
1865 target
=$ac_cv_target
1866 ac_save_IFS
=$IFS; IFS
='-'
1872 # Remember, the first character of IFS is used to create $*,
1873 # except with old shells:
1876 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
1879 # The aliases save the names the user supplied, while $host etc.
1880 # will get canonicalized.
1881 test -n "$target_alias" &&
1882 test "$program_prefix$program_suffix$program_transform_name" = \
1884 program_prefix
=${target_alias}-
1891 # Check whether --with-gcc was given.
1892 if test "${with_gcc+set}" = set; then
1898 if test "${srcdir}" != "." ; then
1899 V_INCLS
="-I\$(srcdir)"
1901 if test "${CFLAGS+set}" = set; then
1902 LBL_CFLAGS
="$CFLAGS"
1904 if test -z "$CC" ; then
1905 case "$target_os" in
1908 # Extract the first word of "shlicc2", so it can be a program name with args.
1909 set dummy shlicc2
; ac_word
=$2
1910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1912 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$SHLICC2"; then
1916 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir
=.
1923 for ac_exec_ext
in '' $ac_executable_extensions; do
1924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1925 ac_cv_prog_SHLICC2
="yes"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1936 SHLICC2
=$ac_cv_prog_SHLICC2
1937 if test -n "$SHLICC2"; then
1938 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1939 echo "${ECHO_T}$SHLICC2" >&6; }
1941 { echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6; }
1946 if test $SHLICC2 = yes ; then
1953 if test -z "$CC" -a "$with_gcc" = no
; then
1958 ac_cpp
='$CPP $CPPFLAGS'
1959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1964 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir
=.
1978 for ac_exec_ext
in '' $ac_executable_extensions; do
1979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1980 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 if test -n "$CC"; then
1992 { echo "$as_me:$LINENO: result: $CC" >&5
1993 echo "${ECHO_T}$CC" >&6; }
1995 { echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6; }
2001 if test -z "$ac_cv_prog_CC"; then
2003 # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc
; ac_word
=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir
=.
2018 for ac_exec_ext
in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC
="gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2039 if test "x$ac_ct_CC" = x
; then
2042 case $cross_compiling:$ac_tool_warned in
2044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2045 whose name does not start with the host triplet. If you think this
2046 configuration is useful to you, please write to autoconf@gnu.org." >&5
2047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2050 ac_tool_warned
=yes ;;
2058 if test -z "$CC"; then
2059 if test -n "$ac_tool_prefix"; then
2060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2061 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064 if test "${ac_cv_prog_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test -n "$CC"; then
2068 ac_cv_prog_CC
="$CC" # Let the user override the test.
2070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir
=.
2075 for ac_exec_ext
in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 if test -n "$CC"; then
2089 { echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6; }
2092 { echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6; }
2099 if test -z "$CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc
; ac_word
=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC
="$CC" # Let the user override the test.
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 for ac_exec_ext
in '' $ac_executable_extensions; do
2117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2119 ac_prog_rejected
=yes
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 if test $ac_prog_rejected = yes; then
2131 # We found a bogon in the path, so make sure we never use it.
2132 set dummy
$ac_cv_prog_CC
2134 if test $# != 0; then
2135 # We chose a different compiler from the bogus one.
2136 # However, it has the same basename, so the bogon will be chosen
2137 # first if we set CC to just the basename; use the full file name.
2139 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2145 if test -n "$CC"; then
2146 { echo "$as_me:$LINENO: result: $CC" >&5
2147 echo "${ECHO_T}$CC" >&6; }
2149 { echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6; }
2155 if test -z "$CC"; then
2156 if test -n "$ac_tool_prefix"; then
2157 for ac_prog
in cl.exe
2159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2160 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC
="$CC" # Let the user override the test.
2169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2173 test -z "$as_dir" && as_dir
=.
2174 for ac_exec_ext
in '' $ac_executable_extensions; do
2175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2176 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 { echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6; }
2191 { echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6; }
2196 test -n "$CC" && break
2199 if test -z "$CC"; then
2201 for ac_prog
in cl.exe
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy
$ac_prog; ac_word
=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$ac_ct_CC"; then
2211 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir
=.
2218 for ac_exec_ext
in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2220 ac_cv_prog_ac_ct_CC
="$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6; }
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2240 test -n "$ac_ct_CC" && break
2243 if test "x$ac_ct_CC" = x
; then
2246 case $cross_compiling:$ac_tool_warned in
2248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2249 whose name does not start with the host triplet. If you think this
2250 configuration is useful to you, please write to autoconf@gnu.org." >&5
2251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet. If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2254 ac_tool_warned
=yes ;;
2263 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: no acceptable C compiler found in \$PATH
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2269 # Provide some information about the compiler.
2270 echo "$as_me:$LINENO: checking for C compiler version" >&5
2271 ac_compiler
=`set X $ac_compile; echo $2`
2272 { (ac_try
="$ac_compiler --version >&5"
2274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278 (eval "$ac_compiler --version >&5") 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282 { (ac_try="$ac_compiler -v >&5"
2284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2285 *) ac_try_echo
=$ac_try;;
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288 (eval "$ac_compiler -v >&5") 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }
2292 { (ac_try
="$ac_compiler -V >&5"
2294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_compiler -V >&5") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 ac_clean_files_save=$ac_clean_files
2319 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2320 # Try to create an executable without -o first, disregard a.out.
2321 # It will help us diagnose broken compilers, and finding out an intuition
2323 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2324 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2325 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2327 # List of possible output files, starting from the most likely.
2328 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2329 # only as a last resort. b.out is created by i960 compilers.
2330 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2332 # The IRIX 6 linker writes into existing files which may not be
2333 # executable, retaining their permissions. Remove them first so a
2334 # subsequent execution test works.
2336 for ac_file in $ac_files
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2345 if { (ac_try="$ac_link_default"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_link_default") 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2356 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2357 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2358 # so that the user can short-circuit this test for compilers unknown to
2360 for ac_file
in $ac_files ''
2362 test -f "$ac_file" ||
continue
2364 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2367 # We found the default executable, but exeext='' is most
2371 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2373 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 # We set ac_cv_exeext here because the later test for it is not
2376 # safe: cross compilers may not add the suffix if given an `-o'
2377 # argument, so we may need to know it at that point already.
2378 # Even if this section looks crufty: it has the advantage of
2385 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2391 { echo "$as_me:$LINENO: result: $ac_file" >&5
2392 echo "${ECHO_T}$ac_file" >&6; }
2393 if test -z "$ac_file"; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.
$ac_ext >&5
2397 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: C compiler cannot create executables
2400 See \`config.log' for more details." >&2;}
2401 { (exit 77); exit 77; }; }
2404 ac_exeext
=$ac_cv_exeext
2406 # Check that the compiler produces executables we can run. If not, either
2407 # the compiler is broken, or we cross compile.
2408 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413 if { ac_try
='./$ac_file'
2414 { (case "(($ac_try" in
2415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_try") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2425 if test "$cross_compiling" = maybe; then
2428 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2429 If you meant to cross compile, use \`--host'.
2430 See \`config.log' for more details.
" >&5
2431 echo "$as_me: error
: cannot run C compiled programs.
2432 If you meant to cross compile
, use \
`--host'.
2433 See \`config.log
' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2438 { echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6; }
2441 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2442 ac_clean_files=$ac_clean_files_save
2443 # Check that the compiler produces executables we can run. If not, either
2444 # the compiler is broken, or we cross compile.
2445 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2446 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2447 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2448 echo "${ECHO_T}$cross_compiling" >&6; }
2450 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2451 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2452 if { (ac_try="$ac_link"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_link") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; then
2462 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2463 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2464 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2466 for ac_file
in conftest.exe conftest conftest.
*; do
2467 test -f "$ac_file" ||
continue
2469 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2470 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }
2483 rm -f conftest
$ac_cv_exeext
2484 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2485 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2487 rm -f conftest.
$ac_ext
2488 EXEEXT
=$ac_cv_exeext
2490 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2491 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2492 if test "${ac_cv_objext+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 cat >conftest.
$ac_ext <<_ACEOF
2498 cat confdefs.h
>>conftest.
$ac_ext
2499 cat >>conftest.
$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.o conftest.obj
2511 if { (ac_try
="$ac_compile"
2513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_compile") 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; then
2521 for ac_file in conftest.o conftest.obj conftest.*; do
2522 test -f "$ac_file" || continue;
2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2525 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2533 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2534 See \`config.log
' for more details." >&5
2535 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2536 See \`config.log' for more details.
" >&2;}
2537 { (exit 1); exit 1; }; }
2540 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2542 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2543 echo "${ECHO_T}$ac_cv_objext" >&6; }
2544 OBJEXT=$ac_cv_objext
2546 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2547 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2548 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2549 echo $ECHO_N "(cached
) $ECHO_C" >&6
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2582 (exit $ac_status); } && {
2583 test -z "$ac_c_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest.$ac_objext; then
2588 echo "$as_me: failed program was
:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2598 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2600 GCC=`test $ac_compiler_gnu = yes && echo yes`
2601 ac_test_CFLAGS=${CFLAGS+set}
2602 ac_save_CFLAGS=$CFLAGS
2603 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2604 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2605 if test "${ac_cv_prog_cc_g+set}" = set; then
2606 echo $ECHO_N "(cached
) $ECHO_C" >&6
2608 ac_save_c_werror_flag=$ac_c_werror_flag
2609 ac_c_werror_flag=yes
2612 cat >conftest.$ac_ext <<_ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_compile") 2>conftest.er1
2636 grep -v '^ *+' conftest.er1 >conftest.err
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2640 (exit $ac_status); } && {
2641 test -z "$ac_c_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest.$ac_objext; then
2646 echo "$as_me: failed program was
:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (ac_try="$ac_compile"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compile") 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2678 (exit $ac_status); } && {
2679 test -z "$ac_c_werror_flag" ||
2680 test ! -s conftest.err
2681 } && test -s conftest.$ac_objext; then
2684 echo "$as_me: failed program was
:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compile") 2>conftest.er1
2713 grep -v '^ *+' conftest.er1 >conftest.err
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2717 (exit $ac_status); } && {
2718 test -z "$ac_c_werror_flag" ||
2719 test ! -s conftest.err
2720 } && test -s conftest.$ac_objext; then
2723 echo "$as_me: failed program was
:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_c_werror_flag=$ac_save_c_werror_flag
2738 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2739 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2740 if test "$ac_test_CFLAGS" = set; then
2741 CFLAGS=$ac_save_CFLAGS
2742 elif test $ac_cv_prog_cc_g = yes; then
2743 if test "$GCC" = yes; then
2749 if test "$GCC" = yes; then
2755 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2756 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2757 if test "${ac_cv_prog_cc_c89+set}" = set; then
2758 echo $ECHO_N "(cached
) $ECHO_C" >&6
2760 ac_cv_prog_cc_c89=no
2762 cat >conftest.$ac_ext <<_ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2770 #include <sys/types.h>
2771 #include <sys/stat.h>
2772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2773 struct buf { int x; };
2774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2775 static char *e (p, i)
2781 static char *f (char * (*g) (char **, int), char **p, ...)
2786 s = g (p, va_arg (v,int));
2791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2792 function prototypes and stuff, but not '\xHH' hex character constants.
2793 These don't provoke an error unfortunately, instead are silently treated
2794 as 'x'. The following induces an error, until -std is added to get
2795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2796 array size at least. It's necessary to write '\x00'==0 to get something
2797 that's true only with -std. */
2798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2801 inside strings and character constants. */
2803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2822 CC="$ac_save_CC $ac_arg"
2823 rm -f conftest.$ac_objext
2824 if { (ac_try="$ac_compile"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2832 grep -v '^ *+' conftest.er1 >conftest.err
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
2840 ac_cv_prog_cc_c89=$ac_arg
2842 echo "$as_me: failed program was
:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2848 rm -f core conftest.err conftest.$ac_objext
2849 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2851 rm -f conftest.$ac_ext
2856 case "x
$ac_cv_prog_cc_c89" in
2858 { echo "$as_me:$LINENO: result
: none needed
" >&5
2859 echo "${ECHO_T}none needed
" >&6; } ;;
2861 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2862 echo "${ECHO_T}unsupported
" >&6; } ;;
2864 CC="$CC $ac_cv_prog_cc_c89"
2865 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2866 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 if test "$GCC" = yes ; then
2877 if test "$SHLICC2" = yes ; then
2878 ac_cv_lbl_gcc_vers=2
2881 { echo "$as_me:$LINENO: checking gcc version
" >&5
2882 echo $ECHO_N "checking gcc version...
$ECHO_C" >&6; }
2883 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2884 echo $ECHO_N "(cached
) $ECHO_C" >&6
2886 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2887 sed -e '/^gcc version /!d' \
2888 -e 's/^gcc version //' \
2889 -e 's/ .*//' -e 's/^[^0-9]*//' \
2893 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_gcc_vers" >&5
2894 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2895 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2900 { echo "$as_me:$LINENO: checking that
$CC handles ansi prototypes
" >&5
2901 echo $ECHO_N "checking that
$CC handles ansi prototypes...
$ECHO_C" >&6; }
2902 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2903 echo $ECHO_N "(cached
) $ECHO_C" >&6
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <sys/types.h>
2916 int frob(int, char *)
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 ac_cv_lbl_cc_ansi_prototypes=yes
2940 echo "$as_me: failed program was
:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_cv_lbl_cc_ansi_prototypes=no
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_ansi_prototypes" >&5
2950 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2951 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2952 case "$target_os" in
2955 { echo "$as_me:$LINENO: checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)" >&5
2956 echo $ECHO_N "checking
for HP-UX ansi compiler
($CC -Aa -D_HPUX_SOURCE)...
$ECHO_C" >&6; }
2957 savedcflags="$CFLAGS"
2958 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2959 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2960 echo $ECHO_N "(cached
) $ECHO_C" >&6
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 #include <sys/types.h>
2972 int frob(int, char *)
2977 rm -f conftest.$ac_objext
2978 if { (ac_try="$ac_compile"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2994 ac_cv_lbl_cc_hpux_cc_aa=yes
2996 echo "$as_me: failed program was
:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 ac_cv_lbl_cc_hpux_cc_aa=no
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3006 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3007 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3008 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3009 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3010 { (exit 1); exit 1; }; }
3012 CFLAGS="$savedcflags"
3013 V_CCOPT="-Aa $V_CCOPT"
3015 cat >>confdefs.h <<\_ACEOF
3016 #define _HPUX_SOURCE 1
3022 { { echo "$as_me:$LINENO: error
: see the INSTALL doc
for more info
" >&5
3023 echo "$as_me: error
: see the INSTALL doc
for more info
" >&2;}
3024 { (exit 1); exit 1; }; }
3028 V_INCLS="$V_INCLS -I/usr
/local
/include
"
3029 LDFLAGS="$LDFLAGS -L/usr
/local
/lib
"
3031 case "$target_os" in
3034 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3038 V_CCOPT="$V_CCOPT -std1 -g3"
3042 { echo "$as_me:$LINENO: checking that Ultrix
$CC hacks const
in prototypes
" >&5
3043 echo $ECHO_N "checking that Ultrix
$CC hacks const
in prototypes...
$ECHO_C" >&6; }
3044 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3045 echo $ECHO_N "(cached
) $ECHO_C" >&6
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <sys/types.h>
3057 struct a { int b; };
3058 void c(const struct a *)
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_cv_lbl_cc_const_proto=yes
3082 echo "$as_me: failed program was
:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_cv_lbl_cc_const_proto=no
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_cc_const_proto" >&5
3092 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3093 if test $ac_cv_lbl_cc_const_proto = no ; then
3094 cat >>confdefs.h <<\_ACEOF
3103 { echo "$as_me:$LINENO: checking
for inline
" >&5
3104 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3105 save_CFLAGS="$CFLAGS"
3107 if test "${ac_cv_lbl_inline+set}" = set; then
3108 echo $ECHO_N "(cached
) $ECHO_C" >&6
3113 for ac_lbl_inline in inline __inline__ __inline
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #define inline $ac_lbl_inline
3122 static inline struct iltest *foo(void);
3128 static inline struct iltest *
3131 static struct iltest xxx;
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3160 ac_lbl_cc_inline=yes
3162 echo "$as_me: failed program was
:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 if test "$ac_lbl_cc_inline" = yes ; then
3173 if test "$ac_lbl_cc_inline" = yes ; then
3174 ac_cv_lbl_inline=$ac_lbl_inline
3178 CFLAGS="$save_CFLAGS"
3179 if test ! -z "$ac_cv_lbl_inline" ; then
3180 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_inline" >&5
3181 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3183 { echo "$as_me:$LINENO: result
: no
" >&5
3184 echo "${ECHO_T}no
" >&6; }
3187 cat >>confdefs.h <<_ACEOF
3188 #define inline $ac_cv_lbl_inline
3192 { echo "$as_me:$LINENO: checking
for __attribute__
" >&5
3193 echo $ECHO_N "checking
for __attribute__...
$ECHO_C" >&6; }
3194 if test "${ac_cv___attribute__+set}" = set; then
3195 echo $ECHO_N "(cached
) $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3207 static void foo(void) __attribute__ ((noreturn));
3216 main(int argc, char **argv)
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3239 ac_cv___attribute__=yes
3241 echo "$as_me: failed program was
:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 ac_cv___attribute__=no
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 if test "$ac_cv___attribute__" = "yes"; then
3252 cat >>confdefs.h <<\_ACEOF
3253 #define HAVE___ATTRIBUTE__ 1
3256 V_DEFS="$V_DEFS -D_U_=\"__attribute__
((unused
))\""
3258 V_DEFS="$V_DEFS -D_U_=\"\""
3260 { echo "$as_me:$LINENO: result
: $ac_cv___attribute__" >&5
3261 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3264 { echo "$as_me:$LINENO: checking
for u_int8_t using
$CC" >&5
3265 echo $ECHO_N "checking
for u_int8_t using
$CC...
$ECHO_C" >&6; }
3266 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3267 echo $ECHO_N "(cached
) $ECHO_C" >&6
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3276 # include "confdefs.h
"
3277 # include <sys/types.h>
3279 # include <stdlib.h>
3280 # include <stddef.h>
3290 rm -f conftest.$ac_objext
3291 if { (ac_try="$ac_compile"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
3307 ac_cv_lbl_have_u_int8_t=yes
3309 echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 ac_cv_lbl_have_u_int8_t=no
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int8_t" >&5
3319 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3320 if test $ac_cv_lbl_have_u_int8_t = no ; then
3322 cat >>confdefs.h <<\_ACEOF
3323 #define u_int8_t u_char
3327 { echo "$as_me:$LINENO: checking
for u_int16_t using
$CC" >&5
3328 echo $ECHO_N "checking
for u_int16_t using
$CC...
$ECHO_C" >&6; }
3329 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3330 echo $ECHO_N "(cached
) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3339 # include "confdefs.h
"
3340 # include <sys/types.h>
3342 # include <stdlib.h>
3343 # include <stddef.h>
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3366 (exit $ac_status); } && {
3367 test -z "$ac_c_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest.$ac_objext; then
3370 ac_cv_lbl_have_u_int16_t=yes
3372 echo "$as_me: failed program was
:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 ac_cv_lbl_have_u_int16_t=no
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int16_t" >&5
3382 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3383 if test $ac_cv_lbl_have_u_int16_t = no ; then
3385 cat >>confdefs.h <<\_ACEOF
3386 #define u_int16_t u_short
3390 { echo "$as_me:$LINENO: checking
for u_int32_t using
$CC" >&5
3391 echo $ECHO_N "checking
for u_int32_t using
$CC...
$ECHO_C" >&6; }
3392 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3393 echo $ECHO_N "(cached
) $ECHO_C" >&6
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3402 # include "confdefs.h
"
3403 # include <sys/types.h>
3405 # include <stdlib.h>
3406 # include <stddef.h>
3416 rm -f conftest.$ac_objext
3417 if { (ac_try="$ac_compile"
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_compile") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
3433 ac_cv_lbl_have_u_int32_t=yes
3435 echo "$as_me: failed program was
:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 ac_cv_lbl_have_u_int32_t=no
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 { echo "$as_me:$LINENO: result
: $ac_cv_lbl_have_u_int32_t" >&5
3445 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3446 if test $ac_cv_lbl_have_u_int32_t = no ; then
3448 cat >>confdefs.h <<\_ACEOF
3449 #define u_int32_t u_int
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3460 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3461 # On Suns, sometimes $CPP names a directory.
3462 if test -n "$CPP" && test -d "$CPP"; then
3465 if test -z "$CPP"; then
3466 if test "${ac_cv_prog_CPP+set}" = set; then
3467 echo $ECHO_N "(cached
) $ECHO_C" >&6
3469 # Double quotes because CPP needs to be expanded
3470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3473 for ac_c_preproc_warn_flag in '' yes
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error
" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3488 # include <limits.h>
3490 # include <assert.h>
3494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3512 echo "$as_me: failed program was
:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 # Broken: fails on valid input.
3519 rm -f conftest.err conftest.$ac_ext
3521 # OK, works on sane cases. Now check whether nonexistent headers
3522 # can be detected and how.
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <ac_nonexistent.h>
3531 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3547 # Broken: success on invalid input.
3550 echo "$as_me: failed program was
:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 # Passes both tests.
3558 rm -f conftest.err conftest.$ac_ext
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3575 { echo "$as_me:$LINENO: result
: $CPP" >&5
3576 echo "${ECHO_T}$CPP" >&6; }
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error
" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3593 # include <limits.h>
3595 # include <assert.h>
3599 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3617 echo "$as_me: failed program was
:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3636 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3648 (exit $ac_status); } >/dev/null && {
3649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3652 # Broken: success on invalid input.
3655 echo "$as_me: failed program was
:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Passes both tests.
3663 rm -f conftest.err conftest.$ac_ext
3666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667 rm -f conftest.err conftest.$ac_ext
3668 if $ac_preproc_ok; then
3671 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3672 See \
`config.log' for more details." >&5
3673 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674 See \`config.log
' for more details." >&2;}
3675 { (exit 1); exit 1; }; }
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3681 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3686 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3687 if test "${ac_cv_path_GREP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 # Extract the first word of "grep ggrep" to use in msg output
3691 if test -z "$GREP"; then
3692 set dummy grep ggrep; ac_prog_name=$2
3693 if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 ac_path_GREP_found=false
3697 # Loop through the user's path and
test for each of PROGNAME-LIST
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3699 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3702 test -z "$as_dir" && as_dir
=.
3703 for ac_prog
in grep ggrep
; do
3704 for ac_exec_ext
in '' $ac_executable_extensions; do
3705 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3707 # Check for GNU ac_path_GREP and select it if it is found.
3708 # Check for GNU $ac_path_GREP
3709 case `"$ac_path_GREP" --version 2>&1` in
3711 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
3720 echo 'GREP' >> "conftest.nl"
3721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3722 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3723 ac_count
=`expr $ac_count + 1`
3724 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_GREP
="$ac_path_GREP"
3727 ac_path_GREP_max
=$ac_count
3729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3732 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3736 $ac_path_GREP_found && break 3
3746 GREP
="$ac_cv_path_GREP"
3747 if test -z "$GREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cv_path_GREP
=$GREP
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3761 GREP
="$ac_cv_path_GREP"
3764 { echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3770 then ac_cv_path_EGREP
="$GREP -E"
3772 # Extract the first word of "egrep" to use in msg output
3773 if test -z "$EGREP"; then
3774 set dummy
egrep; ac_prog_name
=$2
3775 if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_path_EGREP_found
=false
3779 # Loop through the user's path and test for each of PROGNAME-LIST
3780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3781 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3784 test -z "$as_dir" && as_dir
=.
3785 for ac_prog
in egrep; do
3786 for ac_exec_ext
in '' $ac_executable_extensions; do
3787 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3788 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3789 # Check for GNU ac_path_EGREP and select it if it is found.
3790 # Check for GNU $ac_path_EGREP
3791 case `"$ac_path_EGREP" --version 2>&1` in
3793 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3796 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3799 cat "conftest.in" "conftest.in" >"conftest.tmp"
3800 mv "conftest.tmp" "conftest.in"
3801 cp "conftest.in" "conftest.nl"
3802 echo 'EGREP' >> "conftest.nl"
3803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3804 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3805 ac_count
=`expr $ac_count + 1`
3806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3807 # Best one so far, save it but keep looking for a better one
3808 ac_cv_path_EGREP
="$ac_path_EGREP"
3809 ac_path_EGREP_max
=$ac_count
3811 # 10*(2^10) chars as input seems more than enough
3812 test $ac_count -gt 10 && break
3814 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3818 $ac_path_EGREP_found && break 3
3828 EGREP
="$ac_cv_path_EGREP"
3829 if test -z "$EGREP"; then
3830 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3831 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3832 { (exit 1); exit 1; }; }
3836 ac_cv_path_EGREP
=$EGREP
3842 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3843 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3844 EGREP
="$ac_cv_path_EGREP"
3847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3849 if test "${ac_cv_header_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 cat >conftest.
$ac_ext <<_ACEOF
3855 cat confdefs.h
>>conftest.
$ac_ext
3856 cat >>conftest.
$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3871 rm -f conftest.
$ac_objext
3872 if { (ac_try
="$ac_compile"
3874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } && {
3885 test -z "$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 } && test -s conftest.$ac_objext; then
3888 ac_cv_header_stdc=yes
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_cv_header_stdc=no
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 if test $ac_cv_header_stdc = yes; then
3899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "memchr" >/dev/null 2>&1; then
3913 ac_cv_header_stdc=no
3919 if test $ac_cv_header_stdc = yes; then
3920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "free" >/dev/null 2>&1; then
3934 ac_cv_header_stdc=no
3940 if test $ac_cv_header_stdc = yes; then
3941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3942 if test "$cross_compiling" = yes; then
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3953 #if ((' ' & 0x0FF) == 0x020)
3954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3957 # define ISLOWER(c) \
3958 (('a' <= (c) && (c) <= 'i') \
3959 || ('j' <= (c) && (c) <= 'r') \
3960 || ('s' <= (c) && (c) <= 'z'))
3961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3969 for (i = 0; i < 256; i++)
3970 if (XOR (islower (i), ISLOWER (i))
3971 || toupper (i) != TOUPPER (i))
3976 rm -f conftest$ac_exeext
3977 if { (ac_try="$ac_link"
3979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3980 *) ac_try_echo
=$ac_try;;
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_link") 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3987 { (case "(($ac_try" in
3988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_try") 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3998 echo "$as_me: program exited with status $ac_status" >&5
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4003 ac_cv_header_stdc=no
4005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4013 if test $ac_cv_header_stdc = yes; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define STDC_HEADERS 1
4021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4032 inttypes.h stdint.h unistd.h
4034 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 $ac_includes_default
4048 #include <$ac_header>
4050 rm -f conftest.$ac_objext
4051 if { (ac_try="$ac_compile"
4053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4054 *) ac_try_echo
=$ac_try;;
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_compile") 2>conftest.er1
4059 grep -v '^ *+' conftest.er1
>conftest.err
4061 cat conftest.err
>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } && {
4064 test -z "$ac_c_werror_flag" ||
4065 test ! -s conftest.err
4066 } && test -s conftest.
$ac_objext; then
4067 eval "$as_ac_Header=yes"
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.
$ac_ext >&5
4072 eval "$as_ac_Header=no"
4075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4077 ac_res
=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h
<<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094 for ac_header
in sys
/ioccom.h sys
/sockio.h limits.h paths.h
4096 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_res
=`eval echo '${'$as_ac_Header'}'`
4104 { echo "$as_me:$LINENO: result: $ac_res" >&5
4105 echo "${ECHO_T}$ac_res" >&6; }
4107 # Is the header compilable?
4108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 $ac_includes_default
4117 #include <$ac_header>
4119 rm -f conftest.
$ac_objext
4120 if { (ac_try
="$ac_compile"
4122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_compile") 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && {
4133 test -z "$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 } && test -s conftest.$ac_objext; then
4136 ac_header_compiler=yes
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4141 ac_header_compiler=no
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4146 echo "${ECHO_T}$ac_header_compiler" >&6; }
4148 # Is the header present?
4149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <$ac_header>
4159 if { (ac_try="$ac_cpp conftest.$ac_ext"
4161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4162 *) ac_try_echo
=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1
>conftest.err
4169 cat conftest.err
>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } >/dev
/null
&& {
4172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4175 ac_header_preproc
=yes
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.
$ac_ext >&5
4180 ac_header_preproc
=no
4183 rm -f conftest.err conftest.
$ac_ext
4184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4185 echo "${ECHO_T}$ac_header_preproc" >&6; }
4187 # So? What about this header?
4188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4194 ac_header_preproc
=yes
4197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4214 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 eval "$as_ac_Header=\$ac_header_preproc"
4219 ac_res
=`eval echo '${'$as_ac_Header'}'`
4220 { echo "$as_me:$LINENO: result: $ac_res" >&5
4221 echo "${ECHO_T}$ac_res" >&6; }
4224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4225 cat >>confdefs.h
<<_ACEOF
4226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4234 for ac_header
in net
/pfvar.h
4236 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4239 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 cat >conftest.
$ac_ext <<_ACEOF
4245 cat confdefs.h
>>conftest.
$ac_ext
4246 cat >>conftest.
$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <sys/types.h>
4249 #include <sys/socket.h>
4252 #include <$ac_header>
4254 rm -f conftest.
$ac_objext
4255 if { (ac_try
="$ac_compile"
4257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 eval "$as_ac_Header=yes"
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 eval "$as_ac_Header=no"
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_res=`eval echo '${'$as_ac_Header'}'`
4282 { echo "$as_me:$LINENO: result: $ac_res" >&5
4283 echo "${ECHO_T}$ac_res" >&6; }
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4294 for ac_header in netinet/if_ether.h
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 cat >conftest.$ac_ext <<_ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 #include <sys/types.h>
4309 #include <sys/socket.h>
4311 #include <$ac_header>
4313 rm -f conftest.$ac_objext
4314 if { (ac_try="$ac_compile"
4316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4317 *) ac_try_echo
=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1
>conftest.err
4324 cat conftest.err
>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && {
4327 test -z "$ac_c_werror_flag" ||
4328 test ! -s conftest.err
4329 } && test -s conftest.
$ac_objext; then
4330 eval "$as_ac_Header=yes"
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.
$ac_ext >&5
4335 eval "$as_ac_Header=no"
4338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4340 ac_res
=`eval echo '${'$as_ac_Header'}'`
4341 { echo "$as_me:$LINENO: result: $ac_res" >&5
4342 echo "${ECHO_T}$ac_res" >&6; }
4343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4344 cat >>confdefs.h
<<_ACEOF
4345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4352 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4354 # The simple test didn't work.
4355 # Do we need to include <net/if.h> first?
4356 # Unset ac_cv_header_netinet_if_ether_h so we don't
4357 # treat the previous failure as a cached value and
4358 # suppress the next test.
4360 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4361 echo "$as_me: Rechecking with some additional includes" >&6;}
4362 unset ac_cv_header_netinet_if_ether_h
4364 for ac_header
in netinet
/if_ether.h
4366 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4369 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 cat >conftest.
$ac_ext <<_ACEOF
4375 cat confdefs.h
>>conftest.
$ac_ext
4376 cat >>conftest.
$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 #include <sys/socket.h>
4380 #include <netinet/in.h>
4385 #include <$ac_header>
4387 rm -f conftest.
$ac_objext
4388 if { (ac_try
="$ac_compile"
4390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 eval "$as_ac_Header=yes"
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 eval "$as_ac_Header=no"
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 ac_res=`eval echo '${'$as_ac_Header'}'`
4415 { echo "$as_me:$LINENO: result: $ac_res" >&5
4416 echo "${ECHO_T}$ac_res" >&6; }
4417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4418 cat >>confdefs.h <<_ACEOF
4419 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4428 if test "$GCC" = yes ; then
4429 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
4430 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
4431 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 cat >conftest.$ac_ext <<_ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4441 * This generates a "duplicate case value" when fixincludes
4444 # include <sys/types.h>
4445 # include <sys/time.h>
4446 # include <sys/ioctl.h>
4447 # ifdef HAVE_SYS_IOCCOM_H
4448 # include <sys/ioccom.h>
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4465 *) ac_try_echo
=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1
>conftest.err
4472 cat conftest.err
>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.
$ac_objext; then
4478 ac_cv_lbl_gcc_fixincludes
=yes
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.
$ac_ext >&5
4483 ac_cv_lbl_gcc_fixincludes
=no
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4489 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
4490 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
4491 if test $ac_cv_lbl_gcc_fixincludes = no
; then
4492 # Don't cache failure
4493 unset ac_cv_lbl_gcc_fixincludes
4494 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
4495 echo "$as_me: error: see the INSTALL for more info" >&2;}
4496 { (exit 1); exit 1; }; }
4502 for ac_func
in strerror strlcpy
4504 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4507 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 cat >conftest.
$ac_ext <<_ACEOF
4513 cat confdefs.h
>>conftest.
$ac_ext
4514 cat >>conftest.
$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4518 #define $ac_func innocuous_$ac_func
4520 /* System header to define __stub macros and hopefully few prototypes,
4521 which can conflict with char $ac_func (); below.
4522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4523 <limits.h> exists even on freestanding compilers. */
4526 # include <limits.h>
4528 # include <assert.h>
4533 /* Override any GCC internal prototype to avoid an error.
4534 Use char because int might match the return type of a GCC
4535 builtin and then its argument prototype would still apply. */
4540 /* The GNU C library defines this for functions which it implements
4541 to always fail with ENOSYS. Some functions are actually named
4542 something starting with __ and the normal name is an alias. */
4543 #if defined __stub_$ac_func || defined __stub___$ac_func
4555 rm -f conftest.
$ac_objext conftest
$ac_exeext
4556 if { (ac_try
="$ac_link"
4558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_link") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest$ac_exeext &&
4572 $as_test_x conftest$ac_exeext; then
4573 eval "$as_ac_var=yes"
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 eval "$as_ac_var=no"
4581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4582 conftest$ac_exeext conftest.$ac_ext
4584 ac_res=`eval echo '${'$as_ac_var'}'`
4585 { echo "$as_me:$LINENO: result: $ac_res" >&5
4586 echo "${ECHO_T}$ac_res" >&6; }
4587 if test `eval echo '${'$as_ac_var'}'` = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
4599 for ac_func in vsnprintf snprintf
4601 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
4602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4615 #define $ac_func innocuous_$ac_func
4617 /* System header to define __stub macros and hopefully few prototypes,
4618 which can conflict with char $ac_func (); below.
4619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4620 <limits.h> exists even on freestanding compilers. */
4623 # include <limits.h>
4625 # include <assert.h>
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4637 /* The GNU C library defines this for functions which it implements
4638 to always fail with ENOSYS. Some functions are actually named
4639 something starting with __ and the normal name is an alias. */
4640 #if defined __stub_$ac_func || defined __stub___$ac_func
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4656 *) ac_try_echo
=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_link") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest
$ac_exeext &&
4669 $as_test_x conftest
$ac_exeext; then
4670 eval "$as_ac_var=yes"
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.
$ac_ext >&5
4675 eval "$as_ac_var=no"
4678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4679 conftest
$ac_exeext conftest.
$ac_ext
4681 ac_res
=`eval echo '${'$as_ac_var'}'`
4682 { echo "$as_me:$LINENO: result: $ac_res" >&5
4683 echo "${ECHO_T}$ac_res" >&6; }
4684 if test `eval echo '${'$as_ac_var'}'` = yes; then
4685 cat >>confdefs.h
<<_ACEOF
4686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4694 if test $needsnprintf = yes; then
4695 case " $LIBOBJS " in
4696 *" snprintf.$ac_objext "* ) ;;
4697 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
4704 # Do this before checking for ether_hostton(), as it's a
4705 # "gethostbyname() -ish function".
4708 # Most operating systems have gethostbyname() in the default searched
4709 # libraries (i.e. libc):
4710 # Some OSes (eg. Solaris) place it in libnsl
4711 # Some strange OSes (SINIX) have it in libsocket:
4712 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4713 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4714 if test "${ac_cv_search_gethostbyname+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 ac_func_search_save_LIBS
=$LIBS
4718 cat >conftest.
$ac_ext <<_ACEOF
4721 cat confdefs.h
>>conftest.
$ac_ext
4722 cat >>conftest.
$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4725 /* Override any GCC internal prototype to avoid an error.
4726 Use char because int might match the return type of a GCC
4727 builtin and then its argument prototype would still apply. */
4731 char gethostbyname ();
4735 return gethostbyname ();
4740 for ac_lib
in '' nsl socket resolv
; do
4741 if test -z "$ac_lib"; then
4742 ac_res
="none required"
4745 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4747 rm -f conftest.
$ac_objext conftest
$ac_exeext
4748 if { (ac_try
="$ac_link"
4750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_link") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1 >conftest.err
4758 cat conftest.err >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && {
4761 test -z "$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4763 } && test -s conftest$ac_exeext &&
4764 $as_test_x conftest$ac_exeext; then
4765 ac_cv_search_gethostbyname=$ac_res
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4775 if test "${ac_cv_search_gethostbyname+set}" = set; then
4779 if test "${ac_cv_search_gethostbyname+set}" = set; then
4782 ac_cv_search_gethostbyname=no
4785 LIBS=$ac_func_search_save_LIBS
4787 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4788 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4789 ac_res=$ac_cv_search_gethostbyname
4790 if test "$ac_res" != no; then
4791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4795 # Unfortunately libsocket sometimes depends on libnsl and
4796 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4797 if test "$ac_cv_search_gethostbyname" = "no"
4799 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4800 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4801 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 ac_check_lib_save_LIBS=$LIBS
4805 LIBS="-lsocket -lnsl $LIBS"
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4813 /* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
4819 char gethostbyname ();
4823 return gethostbyname ();
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (ac_try="$ac_link"
4831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4832 *) ac_try_echo
=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_link") 2>conftest.er1
4837 grep -v '^ *+' conftest.er1
>conftest.err
4839 cat conftest.err
>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest
$ac_exeext &&
4845 $as_test_x conftest
$ac_exeext; then
4846 ac_cv_lib_socket_gethostbyname
=yes
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4851 ac_cv_lib_socket_gethostbyname
=no
4854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4855 conftest
$ac_exeext conftest.
$ac_ext
4856 LIBS
=$ac_check_lib_save_LIBS
4858 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4859 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4860 if test $ac_cv_lib_socket_gethostbyname = yes; then
4861 LIBS
="-lsocket -lnsl $LIBS"
4865 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4866 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4867 if test "${ac_cv_search_socket+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_func_search_save_LIBS
=$LIBS
4871 cat >conftest.
$ac_ext <<_ACEOF
4874 cat confdefs.h
>>conftest.
$ac_ext
4875 cat >>conftest.
$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 /* Override any GCC internal prototype to avoid an error.
4879 Use char because int might match the return type of a GCC
4880 builtin and then its argument prototype would still apply. */
4893 for ac_lib
in '' socket
; do
4894 if test -z "$ac_lib"; then
4895 ac_res
="none required"
4898 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4900 rm -f conftest.
$ac_objext conftest
$ac_exeext
4901 if { (ac_try
="$ac_link"
4903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_link") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest$ac_exeext &&
4917 $as_test_x conftest$ac_exeext; then
4918 ac_cv_search_socket=$ac_res
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4928 if test "${ac_cv_search_socket+set}" = set; then
4932 if test "${ac_cv_search_socket+set}" = set; then
4935 ac_cv_search_socket=no
4938 LIBS=$ac_func_search_save_LIBS
4940 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4941 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4942 ac_res=$ac_cv_search_socket
4943 if test "$ac_res" != no; then
4944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4947 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4948 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4949 if test "${ac_cv_lib_socket_socket+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 ac_check_lib_save_LIBS=$LIBS
4953 LIBS="-lsocket -lnsl $LIBS"
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 /* Override any GCC internal prototype to avoid an error.
4962 Use char because int might match the return type of a GCC
4963 builtin and then its argument prototype would still apply. */
4976 rm -f conftest.$ac_objext conftest$ac_exeext
4977 if { (ac_try="$ac_link"
4979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4980 *) ac_try_echo
=$ac_try;;
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983 (eval "$ac_link") 2>conftest.er1
4985 grep -v '^ *+' conftest.er1
>conftest.err
4987 cat conftest.err
>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest
$ac_exeext &&
4993 $as_test_x conftest
$ac_exeext; then
4994 ac_cv_lib_socket_socket
=yes
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
4999 ac_cv_lib_socket_socket
=no
5002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5003 conftest
$ac_exeext conftest.
$ac_ext
5004 LIBS
=$ac_check_lib_save_LIBS
5006 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5007 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5008 if test $ac_cv_lib_socket_socket = yes; then
5009 LIBS
="-lsocket -lnsl $LIBS"
5014 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5015 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5016 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5017 if test "${ac_cv_search_putmsg+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_func_search_save_LIBS
=$LIBS
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 /* Override any GCC internal prototype to avoid an error.
5029 Use char because int might match the return type of a GCC
5030 builtin and then its argument prototype would still apply. */
5043 for ac_lib
in '' str
; do
5044 if test -z "$ac_lib"; then
5045 ac_res
="none required"
5048 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5050 rm -f conftest.
$ac_objext conftest
$ac_exeext
5051 if { (ac_try
="$ac_link"
5053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
5068 ac_cv_search_putmsg=$ac_res
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078 if test "${ac_cv_search_putmsg+set}" = set; then
5082 if test "${ac_cv_search_putmsg+set}" = set; then
5085 ac_cv_search_putmsg=no
5088 LIBS=$ac_func_search_save_LIBS
5090 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5091 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5092 ac_res=$ac_cv_search_putmsg
5093 if test "$ac_res" != no; then
5094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5101 # You are in a twisty little maze of UN*Xes, all different.
5102 # Some might not have ether_hostton().
5103 # Some might have it, but not declare it in any header file.
5104 # Some might have it, but declare it in <netinet/if_ether.h>.
5105 # Some might have it, but declare it in <netinet/ether.h>
5106 # (And some might have it but document it as something declared in
5107 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5109 # Before you is a C compiler.
5112 for ac_func in ether_hostton
5114 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5128 #define $ac_func innocuous_$ac_func
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func (); below.
5132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 <limits.h> exists even on freestanding compilers. */
5136 # include <limits.h>
5138 # include <assert.h>
5143 /* Override any GCC internal prototype to avoid an error.
5144 Use char because int might match the return type of a GCC
5145 builtin and then its argument prototype would still apply. */
5150 /* The GNU C library defines this for functions which it implements
5151 to always fail with ENOSYS. Some functions are actually named
5152 something starting with __ and the normal name is an alias. */
5153 #if defined __stub_$ac_func || defined __stub___$ac_func
5165 rm -f conftest.$ac_objext conftest$ac_exeext
5166 if { (ac_try="$ac_link"
5168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5169 *) ac_try_echo
=$ac_try;;
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_link") 2>conftest.er1
5174 grep -v '^ *+' conftest.er1
>conftest.err
5176 cat conftest.err
>&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && {
5179 test -z "$ac_c_werror_flag" ||
5180 test ! -s conftest.err
5181 } && test -s conftest
$ac_exeext &&
5182 $as_test_x conftest
$ac_exeext; then
5183 eval "$as_ac_var=yes"
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.
$ac_ext >&5
5188 eval "$as_ac_var=no"
5191 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5192 conftest
$ac_exeext conftest.
$ac_ext
5194 ac_res
=`eval echo '${'$as_ac_var'}'`
5195 { echo "$as_me:$LINENO: result: $ac_res" >&5
5196 echo "${ECHO_T}$ac_res" >&6; }
5197 if test `eval echo '${'$as_ac_var'}'` = yes; then
5198 cat >>confdefs.h
<<_ACEOF
5199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5205 if test "$ac_cv_func_ether_hostton" = yes; then
5207 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
5209 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5211 # Yes. Does it declare ether_hostton()?
5213 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5214 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5215 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 cat >conftest.
$ac_ext <<_ACEOF
5221 cat confdefs.h
>>conftest.
$ac_ext
5222 cat >>conftest.
$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5225 #include <sys/types.h>
5226 #include <sys/socket.h>
5227 #include <netinet/in.h>
5228 #include <arpa/inet.h>
5232 #include <netinet/if_ether.h>
5238 #ifndef ether_hostton
5239 (void) ether_hostton;
5246 rm -f conftest.
$ac_objext
5247 if { (ac_try
="$ac_compile"
5249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.$ac_objext; then
5263 ac_cv_have_decl_ether_hostton=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_have_decl_ether_hostton=no
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5274 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5275 if test $ac_cv_have_decl_ether_hostton = yes; then
5278 cat >>confdefs.h <<\_ACEOF
5279 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5289 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5291 # No, how about <netinet/ether.h>, as on Linux?
5294 for ac_header in netinet/ether.h
5296 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_res=`eval echo '${'$as_ac_Header'}'`
5304 { echo "$as_me:$LINENO: result: $ac_res" >&5
5305 echo "${ECHO_T}$ac_res" >&6; }
5307 # Is the header compilable?
5308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 $ac_includes_default
5317 #include <$ac_header>
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5323 *) ac_try_echo
=$ac_try;;
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1
>conftest.err
5330 cat conftest.err
>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.
$ac_objext; then
5336 ac_header_compiler
=yes
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5341 ac_header_compiler
=no
5344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5346 echo "${ECHO_T}$ac_header_compiler" >&6; }
5348 # Is the header present?
5349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5351 cat >conftest.
$ac_ext <<_ACEOF
5354 cat confdefs.h
>>conftest.
$ac_ext
5355 cat >>conftest.
$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5357 #include <$ac_header>
5359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5367 grep -v '^ *+' conftest.er1 >conftest.err
5369 cat conftest.err >&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null && {
5372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5375 ac_header_preproc=yes
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 ac_header_preproc=no
5383 rm -f conftest.err conftest.$ac_ext
5384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5385 echo "${ECHO_T}$ac_header_preproc" >&6; }
5387 # So? What about this header?
5388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5394 ac_header_preproc=yes
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 eval "$as_ac_Header=\$ac_header_preproc"
5419 ac_res=`eval echo '${'$as_ac_Header'}'`
5420 { echo "$as_me:$LINENO: result: $ac_res" >&5
5421 echo "${ECHO_T}$ac_res" >&6; }
5424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5425 cat >>confdefs.h <<_ACEOF
5426 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5433 if test "$ac_cv_header_netinet_ether_h" = yes; then
5435 # We have it - does it declare ether_hostton()?
5436 # Unset ac_cv_have_decl_ether_hostton so we don't
5437 # treat the previous failure as a cached value and
5438 # suppress the next test.
5440 unset ac_cv_have_decl_ether_hostton
5441 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5442 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5443 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5453 #include <netinet/ether.h>
5459 #ifndef ether_hostton
5460 (void) ether_hostton;
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5471 *) ac_try_echo
=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5476 grep -v '^ *+' conftest.er1
>conftest.err
5478 cat conftest.err
>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.
$ac_objext; then
5484 ac_cv_have_decl_ether_hostton
=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5489 ac_cv_have_decl_ether_hostton
=no
5492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5495 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5496 if test $ac_cv_have_decl_ether_hostton = yes; then
5499 cat >>confdefs.h
<<\_ACEOF
5500 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
5509 # Is ether_hostton() declared?
5511 if test "$ac_cv_have_decl_ether_hostton" != yes; then
5513 # No, we'll have to declare it ourselves.
5514 # Do we have "struct ether_addr"?
5516 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
5517 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
5518 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.
$ac_ext <<_ACEOF
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 #include <sys/socket.h>
5530 #include <netinet/in.h>
5531 #include <arpa/inet.h>
5535 #include <netinet/if_ether.h>
5538 typedef struct ether_addr ac__type_new_;
5542 if ((ac__type_new_ *) 0)
5544 if (sizeof (ac__type_new_))
5550 rm -f conftest.
$ac_objext
5551 if { (ac_try
="$ac_compile"
5553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.$ac_objext; then
5567 ac_cv_type_struct_ether_addr=yes
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 ac_cv_type_struct_ether_addr=no
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
5578 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
5579 if test $ac_cv_type_struct_ether_addr = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582 #define HAVE_STRUCT_ETHER_ADDR 1
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_DECL_ETHER_HOSTTON 0
5595 cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_DECL_ETHER_HOSTTON 1
5602 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
5603 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
5604 # Check whether --enable-protochain was given.
5605 if test "${enable_protochain+set}" = set; then
5606 enableval=$enable_protochain;
5609 case "x$enable_protochain" in
5610 xyes) enable_protochain=enabled ;;
5611 xno) enable_protochain=disabled ;;
5612 x) enable_protochain=enabled ;;
5615 if test "$enable_protochain" = "disabled"; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define NO_PROTOCHAIN 1
5622 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
5623 echo "${ECHO_T}${enable_protochain}" >&6; }
5625 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
5626 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
5627 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
5628 { (exit 1); exit 1; }; }
5631 # Check whether --with-pcap was given.
5632 if test "${with_pcap+set}" = set; then
5636 { echo "$as_me:$LINENO: checking packet capture type" >&5
5637 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
5638 if test ! -z "$with_pcap" ; then
5640 elif test -r /dev/bpf ; then
5642 # Cloning BPF device.
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_CLONING_BPF 1
5650 elif test -r /dev/bpf0 ; then
5652 elif test -r /usr/include/net/pfilt.h ; then
5654 elif test -r /dev/enet ; then
5656 elif test -r /dev/nit ; then
5658 elif test -r /usr/include/sys/net/nit.h ; then
5660 elif test -r /usr/include/linux/socket.h ; then
5662 elif test -r /usr/include/net/raw.h ; then
5664 elif test -r /usr/include/odmi.h ; then
5666 # On AIX, the BPF devices might not yet be present - they're
5667 # created the first time libpcap runs after booting.
5668 # We check for odmi.h instead.
5671 elif test -r /usr/include/sys/dlpi.h ; then
5673 elif test -c /dev/bpf0 ; then # check again in case not readable
5675 elif test -c /dev/enet ; then # check again in case not readable
5677 elif test -c /dev/nit ; then # check again in case not readable
5682 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
5683 echo "${ECHO_T}$V_PCAP" >&6; }
5685 if test "$V_PCAP" = null
5688 # We can't capture, so we can't open any capture
5689 # devices, so we won't return any interfaces.
5693 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
5694 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
5695 if test "${ac_cv_func_getifaddrs+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
5705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5706 #define getifaddrs innocuous_getifaddrs
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char getifaddrs (); below.
5710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711 <limits.h> exists even on freestanding compilers. */
5714 # include <limits.h>
5716 # include <assert.h>
5721 /* Override any GCC internal prototype to avoid an error.
5722 Use char because int might match the return type of a GCC
5723 builtin and then its argument prototype would still apply. */
5728 /* The GNU C library defines this for functions which it implements
5729 to always fail with ENOSYS. Some functions are actually named
5730 something starting with __ and the normal name is an alias. */
5731 #if defined __stub_getifaddrs || defined __stub___getifaddrs
5738 return getifaddrs ();
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (ac_try="$ac_link"
5746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5747 *) ac_try_echo
=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_link") 2>conftest.er1
5752 grep -v '^ *+' conftest.er1
>conftest.err
5754 cat conftest.err
>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest
$ac_exeext &&
5760 $as_test_x conftest
$ac_exeext; then
5761 ac_cv_func_getifaddrs
=yes
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.
$ac_ext >&5
5766 ac_cv_func_getifaddrs
=no
5769 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5770 conftest
$ac_exeext conftest.
$ac_ext
5772 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
5773 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
5774 if test $ac_cv_func_getifaddrs = yes; then
5777 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
5778 # as well, just in case some platform is really weird.
5780 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5781 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5782 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5783 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5787 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5789 # Is the header compilable?
5790 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
5791 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
5792 cat >conftest.
$ac_ext <<_ACEOF
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5799 #include <ifaddrs.h>
5801 rm -f conftest.
$ac_objext
5802 if { (ac_try
="$ac_compile"
5804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 ac_header_compiler=yes
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 ac_header_compiler=no
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5828 echo "${ECHO_T}$ac_header_compiler" >&6; }
5830 # Is the header present?
5831 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
5832 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #include <ifaddrs.h>
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5844 *) ac_try_echo
=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } >/dev
/null
&& {
5854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5857 ac_header_preproc
=yes
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 ac_header_preproc
=no
5865 rm -f conftest.err conftest.
$ac_ext
5866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5867 echo "${ECHO_T}$ac_header_preproc" >&6; }
5869 # So? What about this header?
5870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5872 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
5873 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5874 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
5875 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
5876 ac_header_preproc
=yes
5879 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
5880 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
5882 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
5884 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
5886 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
5887 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
5888 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
5889 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
5890 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
5894 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
5895 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
5896 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_cv_header_ifaddrs_h
=$ac_header_preproc
5901 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
5902 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
5905 if test $ac_cv_header_ifaddrs_h = yes; then
5908 # We have the header, so we use "getifaddrs()" to
5909 # get the list of interfaces.
5916 # We don't have the header - give up.
5917 # XXX - we could also fall back on some other
5918 # mechanism, but, for now, this'll catch this
5919 # problem so that we can at least try to figure
5920 # out something to do on systems with "getifaddrs()"
5921 # but without "ifaddrs.h", if there is something
5922 # we can do on those systems.
5924 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
5925 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
5926 { (exit 1); exit 1; }; }
5935 # Well, we don't have "getifaddrs()", so we have to use
5936 # some other mechanism; determine what that mechanism is.
5938 # The first thing we use is the type of capture mechanism,
5939 # which is somewhat of a proxy for the OS we're using.
5945 # This might be Solaris 8 or later, with
5946 # SIOCGLIFCONF, or it might be some other OS
5947 # or some older version of Solaris, with
5950 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
5951 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
5952 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <sys/param.h>
5962 #include <sys/file.h>
5963 #include <sys/ioctl.h>
5964 #include <sys/socket.h>
5965 #include <sys/sockio.h>
5969 ioctl(0, SIOCGLIFCONF, (char *)0);
5974 rm -f conftest.
$ac_objext
5975 if { (ac_try
="$ac_compile"
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 ac_cv_lbl_have_siocglifconf=yes
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5996 ac_cv_lbl_have_siocglifconf=no
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
6003 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
6004 if test $ac_cv_lbl_have_siocglifconf = yes ; then
6013 # Assume we just have SIOCGIFCONF.
6014 # (XXX - on at least later Linux kernels, there's
6015 # another mechanism, and we should be using that
6025 { echo "$as_me:$LINENO: checking if --enable-ipv6 option is specified" >&5
6026 echo $ECHO_N "checking if --enable-ipv6 option is specified... $ECHO_C" >&6; }
6027 # Check whether --enable-ipv6 was given.
6028 if test "${enable_ipv6+set}" = set; then
6029 enableval=$enable_ipv6;
6032 if test "$enable_ipv6" = "yes"; then
6034 cat >>confdefs.h <<\_ACEOF
6039 { echo "$as_me:$LINENO: result: ${enable_ipv6-no}" >&5
6040 echo "${ECHO_T}${enable_ipv6-no}" >&6; }
6042 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
6043 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
6044 # Check whether --enable-optimizer-dbg was given.
6045 if test "${enable_optimizer_dbg+set}" = set; then
6046 enableval=$enable_optimizer_dbg;
6049 if test "$enable_optimizer_dbg" = "yes"; then
6051 cat >>confdefs.h <<\_ACEOF
6056 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
6057 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
6059 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
6060 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
6061 # Check whether --enable-yydebug was given.
6062 if test "${enable_yydebug+set}" = set; then
6063 enableval=$enable_yydebug;
6066 if test "$enable_yydebug" = "yes"; then
6068 cat >>confdefs.h <<\_ACEOF
6073 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
6074 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
6081 for ac_header in sys/bufmod.h sys/dlpi_ext.h
6083 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_res=`eval echo '${'$as_ac_Header'}'`
6091 { echo "$as_me:$LINENO: result: $ac_res" >&5
6092 echo "${ECHO_T}$ac_res" >&6; }
6094 # Is the header compilable?
6095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 #include <$ac_header>
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6110 *) ac_try_echo
=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1
>conftest.err
6117 cat conftest.err
>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.
$ac_objext; then
6123 ac_header_compiler
=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.
$ac_ext >&5
6128 ac_header_compiler
=no
6131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6133 echo "${ECHO_T}$ac_header_compiler" >&6; }
6135 # Is the header present?
6136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6138 cat >conftest.
$ac_ext <<_ACEOF
6141 cat confdefs.h
>>conftest.
$ac_ext
6142 cat >>conftest.
$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <$ac_header>
6146 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null && {
6159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6162 ac_header_preproc=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_header_preproc=no
6170 rm -f conftest.err conftest.$ac_ext
6171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6; }
6174 # So? What about this header?
6175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6181 ac_header_preproc=yes
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 eval "$as_ac_Header=\$ac_header_preproc"
6206 ac_res=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6220 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6221 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6222 if test -c /dev/dlpi ; then
6223 { echo "$as_me:$LINENO: result: yes" >&5
6224 echo "${ECHO_T}yes" >&6; }
6226 cat >>confdefs.h <<\_ACEOF
6227 #define HAVE_DEV_DLPI 1
6231 { echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6; }
6234 { echo "$as_me:$LINENO: checking for $dir directory" >&5
6235 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6236 if test -d $dir ; then
6237 { echo "$as_me:$LINENO: result: yes" >&5
6238 echo "${ECHO_T}yes" >&6; }
6240 cat >>confdefs.h <<_ACEOF
6241 #define PCAP_DEV_PREFIX "$dir"
6245 { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6252 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
6253 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6254 if test "$cross_compiling" = yes; then
6255 if test "${ac_cv_linux_vers+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_cv_linux_vers=unknown
6262 if test "${ac_cv_linux_vers+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 ac_cv_linux_vers=`uname
-r 2>&1 | \
6266 sed -n -e '$s/.* //' -e '$s/\..*//p'`
6270 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6271 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6272 if test $ac_cv_linux_vers = unknown ; then
6273 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6274 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6275 { (exit 1); exit 1; }; }
6277 if test $ac_cv_linux_vers -lt 2 ; then
6278 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6279 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6280 { (exit 1); exit 1; }; }
6282 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6283 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6284 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6294 # include <linux/if_packet.h>
6298 struct tpacket_stats stats
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6307 *) ac_try_echo
=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1
>conftest.err
6314 cat conftest.err
>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.
$ac_objext; then
6320 ac_cv_lbl_tpacket_stats
=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.
$ac_ext >&5
6325 ac_cv_lbl_tpacket_stats
=no
6328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6332 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6333 if test $ac_cv_lbl_tpacket_stats = yes; then
6335 cat >>confdefs.h
<<\_ACEOF
6336 #define HAVE_TPACKET_STATS 1
6343 V_DEFS
="$V_DEFS -DDAG_ONLY"
6347 V_DEFS
="$V_DEFS -DSEPTEL_ONLY"
6351 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
6352 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
6354 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
6359 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
6360 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
6361 if test -r /proc
/net
/dev
; then
6362 ac_cv_lbl_proc_net_dev
=yes
6364 ac_cv_lbl_proc_net_dev
=no
6366 if test $ac_cv_lbl_proc_net_dev = yes; then
6368 cat >>confdefs.h
<<\_ACEOF
6369 #define HAVE_PROC_NET_DEV 1
6373 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
6374 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
6376 # Check for Endace DAG card support.
6378 # Check whether --with-dag was given.
6379 if test "${with_dag+set}" = set; then
6381 if test "$withval" = no
6383 # User doesn't want DAG support.
6385 elif test "$withval" = yes
6387 # User wants DAG support but hasn't specified a directory.
6390 # User wants DAG support and has specified a directory, so use the provided value.
6398 # Use DAG API if present, otherwise don't
6406 # Check whether --with-dag-includes was given.
6407 if test "${with_dag_includes+set}" = set; then
6408 withval
=$with_dag_includes;
6409 # User wants DAG support and has specified a header directory, so use the provided value.
6411 dag_include_dir
=$withval
6417 # Check whether --with-dag-libraries was given.
6418 if test "${with_dag_libraries+set}" = set; then
6419 withval
=$with_dag_libraries;
6420 # User wants DAG support and has specified a library directory, so use the provided value.
6422 dag_lib_dir
=$withval
6430 # We support the DAG API if we're on Linux or BSD, or if we're
6431 # building a DAG-only libpcap.
6436 # If the user explicitly requested DAG, tell them it's not
6439 # If they expressed no preference, don't include it.
6441 if test $want_dag = yes; then
6442 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
6443 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
6444 { (exit 1); exit 1; }; }
6445 elif test $want_dag = yes; then
6451 ac_cv_lbl_dag_api
=no
6452 if test "$want_dag" != no
; then
6454 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
6455 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
6457 # If necessary, set default paths for DAG API headers and libraries.
6458 if test -z "$dag_root"; then
6462 if test -z "$dag_include_dir"; then
6463 dag_include_dir
="$dag_root/include"
6466 if test -z "$dag_lib_dir"; then
6467 dag_lib_dir
="$dag_root/lib"
6470 if test -z "$dag_tools_dir"; then
6471 dag_tools_dir
="$dag_root/tools"
6474 if test -r $dag_include_dir/dagapi.h
; then
6475 ac_cv_lbl_dag_api
=yes
6477 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
6478 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
6481 if test $ac_cv_lbl_dag_api = yes; then
6483 { echo "$as_me:$LINENO: checking dagapi.o" >&5
6484 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
6486 if test -r $dag_tools_dir/dagapi.o
; then
6488 dagapi_obj
=$dag_tools_dir/dagapi.o
6489 elif test -r $dag_lib_dir/dagapi.o
; then
6491 dagapi_obj
=$dag_lib_dir/dagapi.o
6492 elif test -r $dag_lib_dir/libdag.a
; then
6494 ar x
$dag_lib_dir/libdag.a dagapi.o
6495 if test -r .
/dagapi.o
; then
6496 dagapi_obj
=.
/dagapi.o
6498 ar x
$dag_lib_dir/libdag.a libdag_la-dagapi.o
6499 if test -r .
/libdag_la-dagapi.o
; then
6500 dagapi_obj
=.
/libdag_la-dagapi.o
6505 if test $dagapi_obj = no
; then
6506 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6507 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6508 ac_cv_lbl_dag_api
=no
6510 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
6511 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
6515 if test $ac_cv_lbl_dag_api = yes; then
6517 { echo "$as_me:$LINENO: checking dagopts.o" >&5
6518 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
6520 if test -r $dag_tools_dir/dagopts.o
; then
6522 dagopts_obj
=$dag_tools_dir/dagopts.o
6523 elif test -r $dag_lib_dir/dagopts.o
; then
6525 dagopts_obj
=$dag_lib_dir/dagopts.o
6526 elif test -r $dag_lib_dir/libdag.a
; then
6528 ar x
$dag_lib_dir/libdag.a dagopts.o
6529 if test -r .
/dagopts.o
; then
6530 dagopts_obj
=.
/dagopts.o
6532 ar x
$dag_lib_dir/libdag.a libdag_la-dagopts.o
6533 if test -r .
/libdag_la-dagopts.o
; then
6534 dagopts_obj
=.
/libdag_la-dagopts.o
6539 if test $dagopts_obj = no
; then
6540 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
6541 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
6542 ac_cv_lbl_dag_api
=no
6544 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
6545 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
6549 if test $ac_cv_lbl_dag_api = yes; then
6550 # Under 2.5.x only we need to add dagreg.o.
6551 if test -r $dag_include_dir/dagreg.h
; then
6552 { echo "$as_me:$LINENO: checking dagreg.o" >&5
6553 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
6555 if test -r $dag_lib_dir/dagreg.o
; then
6556 # Object file is ready and waiting.
6557 dagreg_obj
=$dag_lib_dir/dagreg.o
6558 elif test -r $dag_lib_dir/libdag.a
; then
6559 # Extract from libdag.a.
6560 ar x
$dag_lib_dir/libdag.a dagreg.o
6561 if test -r .
/dagreg.o
; then
6562 dagreg_obj
=.
/dagreg.o
6564 ar x
$dag_lib_dir/libdag.a libdag_la-dagreg.o
6565 if test -r .
/libdag_la-dagreg.o
; then
6566 dagreg_obj
=.
/libdag_la-dagreg.o
6571 if test $dagreg_obj = no
; then
6572 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
6573 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
6574 ac_cv_lbl_dag_api
=no
6576 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
6577 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
6582 if test $ac_cv_lbl_dag_api = yes; then
6583 V_INCLS
="$V_INCLS -I$dag_include_dir"
6584 V_LIBS
="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
6585 if test $V_PCAP != dag
; then
6589 # See if we can find a general version string.
6590 # Don't need to save and restore LIBS to prevent -ldag being
6591 # included if there's a found-action (arg 3).
6592 saved_ldflags
=$LDFLAGS
6593 LDFLAGS
="-L$dag_lib_dir"
6594 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
6595 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
6596 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 ac_check_lib_save_LIBS
=$LIBS
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6608 /* Override any GCC internal prototype to avoid an error.
6609 Use char because int might match the return type of a GCC
6610 builtin and then its argument prototype would still apply. */
6614 char dag_attach_stream ();
6618 return dag_attach_stream ();
6623 rm -f conftest.
$ac_objext conftest
$ac_exeext
6624 if { (ac_try
="$ac_link"
6626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_link") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest$ac_exeext &&
6640 $as_test_x conftest$ac_exeext; then
6641 ac_cv_lib_dag_dag_attach_stream=yes
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 ac_cv_lib_dag_dag_attach_stream=no
6649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6650 conftest$ac_exeext conftest.$ac_ext
6651 LIBS=$ac_check_lib_save_LIBS
6653 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
6654 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
6655 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
6661 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
6662 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
6663 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_check_lib_save_LIBS=$LIBS
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6681 char dag_get_erf_types ();
6685 return dag_get_erf_types ();
6690 rm -f conftest.$ac_objext conftest$ac_exeext
6691 if { (ac_try="$ac_link"
6693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6694 *) ac_try_echo
=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_link") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1
>conftest.err
6701 cat conftest.err
>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest
$ac_exeext &&
6707 $as_test_x conftest
$ac_exeext; then
6708 ac_cv_lib_dag_dag_get_erf_types
=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6713 ac_cv_lib_dag_dag_get_erf_types
=no
6716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6717 conftest
$ac_exeext conftest.
$ac_ext
6718 LIBS
=$ac_check_lib_save_LIBS
6720 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
6721 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
6722 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
6725 cat >>confdefs.h
<<\_ACEOF
6726 #define HAVE_DAG_GET_ERF_TYPES 1
6732 LDFLAGS
=$saved_ldflags
6734 if test "$dag_version" = 2.5.x
; then
6736 cat >>confdefs.h
<<\_ACEOF
6737 #define HAVE_DAG_STREAMS_API 1
6743 # See if we can find a specific version string.
6744 { echo "$as_me:$LINENO: checking the DAG API version" >&5
6745 echo $ECHO_N "checking the DAG API version... $ECHO_C" >&6; }
6746 if test -r "$dag_root/VERSION"; then
6747 dag_version
="`cat $dag_root/VERSION`"
6749 { echo "$as_me:$LINENO: result: $dag_version" >&5
6750 echo "${ECHO_T}$dag_version" >&6; }
6752 cat >>confdefs.h
<<\_ACEOF
6753 #define HAVE_DAG_API 1
6758 if test $ac_cv_lbl_dag_api = no
; then
6759 if test "$want_dag" = yes; then
6760 # User wanted DAG support but we couldn't find it.
6761 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
6762 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
6763 { (exit 1); exit 1; }; }
6766 if test "$V_PCAP" = dag
; then
6767 # User requested "dag" capture type but the DAG API wasn't
6769 { { echo "$as_me:$LINENO: 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.)" >&5
6770 echo "$as_me: 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.)" >&2;}
6771 { (exit 1); exit 1; }; }
6776 # Check whether --with-septel was given.
6777 if test "${with_septel+set}" = set; then
6778 withval
=$with_septel;
6779 if test "$withval" = no
6782 elif test "$withval" = yes
6788 septel_root
=$withval
6794 # Use Septel API if present, otherwise don't
6796 want_septel
=ifpresent
6797 septel_root
=.
/..
/septel
6801 ac_cv_lbl_septel_api
=no
6805 # We support the Septel API if we're on Linux, or if we're building
6806 # a Septel-only libpcap.
6811 # If the user explicitly requested Septel, tell them it's not
6814 # If they expressed no preference, don't include it.
6816 if test $want_septel = yes; then
6817 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
6818 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
6819 { (exit 1); exit 1; }; }
6820 elif test $want_septel = yes; then
6826 if test "$with_septel" != no
; then
6827 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
6828 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
6830 if test -z "$septel_root"; then
6831 septel_root
=$srcdir/..
/septel
6835 septel_tools_dir
="$septel_root"
6836 septel_include_dir
="$septel_root/INC"
6837 DEF
="-DHAVE_SEPTEL_API"
6839 ac_cv_lbl_septel_api
=no
6840 if test -r "$septel_include_dir/msg.h"; then
6841 V_INCLS
="$V_INCLS -I$septel_include_dir"
6842 V_DEFS
="$V_DEFS $DEF"
6843 V_LIBS
="$V_LIBS $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 "
6845 if test "$V_PCAP" != septel
; then
6846 SSRC
="pcap-septel.c"
6849 ac_cv_lbl_septel_api
=yes
6852 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
6853 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
6854 if test $ac_cv_lbl_septel_api = no
; then
6855 if test "$want_septel" = yes; then
6856 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
6857 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
6858 { (exit 1); exit 1; }; }
6862 cat >>confdefs.h
<<\_ACEOF
6863 #define HAVE_SEPTEL_API 1
6869 if test "$V_PCAP" = septel
-a "$ac_cv_lbl_septel_api" = no
; then
6870 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
6871 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
6872 { (exit 1); exit 1; }; }
6877 # Check whether --with-flex was given.
6878 if test "${with_flex+set}" = set; then
6883 # Check whether --with-bison was given.
6884 if test "${with_bison+set}" = set; then
6885 withval
=$with_bison;
6888 if test "$with_flex" = no
; then
6893 # Extract the first word of "$ac_prog", so it can be a program name with args.
6894 set dummy
$ac_prog; ac_word
=$2
6895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6897 if test "${ac_cv_prog_V_LEX+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 if test -n "$V_LEX"; then
6901 ac_cv_prog_V_LEX
="$V_LEX" # Let the user override the test.
6903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir
=.
6908 for ac_exec_ext
in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_V_LEX
="$ac_prog"
6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 V_LEX
=$ac_cv_prog_V_LEX
6921 if test -n "$V_LEX"; then
6922 { echo "$as_me:$LINENO: result: $V_LEX" >&5
6923 echo "${ECHO_T}$V_LEX" >&6; }
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6930 test -n "$V_LEX" && break
6932 test -n "$V_LEX" || V_LEX
="lex"
6935 if test "$V_LEX" = flex
; then
6936 # The -V flag was added in 2.4
6937 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
6938 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
6939 if test "${ac_cv_lbl_flex_v24+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 if flex
-V >/dev
/null
2>&1; then
6943 ac_cv_lbl_flex_v24
=yes
6945 ac_cv_lbl_flex_v24
=no
6949 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
6950 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
6951 if test $ac_cv_lbl_flex_v24 = no
; then
6952 s
="2.4 or higher required"
6953 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
6954 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
6958 if test "$with_bison" = no
; then
6961 for ac_prog
in bison
6963 # Extract the first word of "$ac_prog", so it can be a program name with args.
6964 set dummy
$ac_prog; ac_word
=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_prog_V_YACC+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 if test -n "$V_YACC"; then
6971 ac_cv_prog_V_YACC
="$V_YACC" # Let the user override the test.
6973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir
=.
6978 for ac_exec_ext
in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_prog_V_YACC
="$ac_prog"
6981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 V_YACC
=$ac_cv_prog_V_YACC
6991 if test -n "$V_YACC"; then
6992 { echo "$as_me:$LINENO: result: $V_YACC" >&5
6993 echo "${ECHO_T}$V_YACC" >&6; }
6995 { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
7000 test -n "$V_YACC" && break
7002 test -n "$V_YACC" || V_YACC
="yacc"
7005 if test "$V_YACC" = bison
; then
7008 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
7009 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
7010 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
7014 if test "$V_LEX" = flex
-a -n "pcap_" ; then
7015 V_LEX
="$V_LEX -Ppcap_"
7016 V_YACC
="$V_YACC -p pcap_"
7018 if test "$V_LEX" = lex ; then
7019 # Some versions of lex can't handle the definitions section of scanner.l .
7020 # Try lexing it and complain if it can't deal.
7021 { echo "$as_me:$LINENO: checking for capable lex" >&5
7022 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
7023 if test "${tcpdump_cv_capable_lex+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if lex -t scanner.l
> /dev
/null
2>&1; then
7027 tcpdump_cv_capable_lex
=yes
7029 tcpdump_cv_capable_lex
=insufficient
7032 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
7033 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
7034 if test $tcpdump_cv_capable_lex = insufficient
; then
7035 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
7036 libpcap. flex is a lex replacement that has many advantages, including
7037 being able to compile libpcap. For more information, see
7038 http://www.gnu.org/software/flex/flex.html ." >&5
7039 echo "$as_me: error: Your operating system's lex is insufficient to compile
7040 libpcap. flex is a lex replacement that has many advantages, including
7041 being able to compile libpcap. For more information, see
7042 http://www.gnu.org/software/flex/flex.html ." >&2;}
7043 { (exit 1); exit 1; }; }
7052 cat >>confdefs.h
<<\_ACEOF
7060 cat >>confdefs.h
<<\_ACEOF
7061 #define HAVE_HPUX9 1
7074 cat >>confdefs.h
<<\_ACEOF
7075 #define HAVE_HPUX10_20_OR_LATER 1
7081 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
7082 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
7083 if test "${ac_cv_cc_sinix_defined+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 cat >conftest.
$ac_ext <<_ACEOF
7089 cat confdefs.h
>>conftest.
$ac_ext
7090 cat >>conftest.
$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7101 rm -f conftest.
$ac_objext
7102 if { (ac_try
="$ac_compile"
7104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_cc_sinix_defined=yes
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 ac_cv_cc_sinix_defined=no
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
7130 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
7131 if test $ac_cv_cc_sinix_defined = no ; then
7133 cat >>confdefs.h <<\_ACEOF
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_SOLARIS 1
7150 V_CCOPT="$V_CCOPT -fno-common"
7154 V_CCOPT="$V_CCOPT -fPIC"
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_prog_RANLIB+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 if test -n "$RANLIB"; then
7168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 RANLIB=$ac_cv_prog_RANLIB
7188 if test -n "$RANLIB"; then
7189 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7190 echo "${ECHO_T}$RANLIB" >&6; }
7192 { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7198 if test -z "$ac_cv_prog_RANLIB"; then
7199 ac_ct_RANLIB=$RANLIB
7200 # Extract the first word of "ranlib", so it can be a program name with args.
7201 set dummy ranlib; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 if test -n "$ac_ct_RANLIB"; then
7208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_ac_ct_RANLIB="ranlib"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7228 if test -n "$ac_ct_RANLIB"; then
7229 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7230 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7232 { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7236 if test "x$ac_ct_RANLIB" = x; then
7239 case $cross_compiling:$ac_tool_warned in
7241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7242 whose name does not start with the host triplet. If you think this
7243 configuration is useful to you, please write to autoconf@gnu.org." >&5
7244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7245 whose name does not start with the host triplet. If you think this
7246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7247 ac_tool_warned=yes ;;
7249 RANLIB=$ac_ct_RANLIB
7252 RANLIB="$ac_cv_prog_RANLIB"
7257 if test "${LBL_CFLAGS+set}" = set; then
7258 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
7260 if test -f .devel ; then
7261 if test "$GCC" = yes ; then
7262 if test "${LBL_CFLAGS+set}" != set; then
7263 if test "$ac_cv_prog_cc_g" = yes ; then
7264 V_CCOPT="-g $V_CCOPT"
7266 V_CCOPT="$V_CCOPT -Wall"
7267 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
7268 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
7272 case "$target_os" in
7275 V_CCOPT="$V_CCOPT -n32"
7282 os=`echo $target_os |
sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
7284 if test -f $name ; then
7285 ln -s $name os-proto.h
7287 cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_OS_PROTO_H 1
7292 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
7293 echo "$as_me: WARNING: can't find $name" >&2;}
7297 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
7298 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
7299 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7309 # include <sys/types.h>
7310 # include <sys/socket.h>
7314 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7323 *) ac_try_echo
=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1
>conftest.err
7330 cat conftest.err
>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.
$ac_objext; then
7336 ac_cv_lbl_sockaddr_has_sa_len
=yes
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.
$ac_ext >&5
7341 ac_cv_lbl_sockaddr_has_sa_len
=no
7344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
7348 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
7349 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
7351 cat >>confdefs.h
<<\_ACEOF
7352 #define HAVE_SOCKADDR_SA_LEN 1
7357 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
7358 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
7359 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.
$ac_ext <<_ACEOF
7365 cat confdefs.h
>>conftest.
$ac_ext
7366 cat >>conftest.
$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7369 # include <sys/types.h>
7370 # include <sys/socket.h>
7374 u_int i = sizeof (struct sockaddr_storage)
7379 rm -f conftest.
$ac_objext
7380 if { (ac_try
="$ac_compile"
7382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 ac_cv_lbl_has_sockaddr_storage=yes
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_cv_lbl_has_sockaddr_storage=no
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
7408 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
7409 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_SOCKADDR_STORAGE 1
7417 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
7418 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
7419 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7429 # include <sys/types.h>
7430 # include <sys/dlpi.h>
7431 # include <sys/dlpi_ext.h>
7435 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
7440 rm -f conftest.$ac_objext
7441 if { (ac_try="$ac_compile"
7443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7444 *) ac_try_echo
=$ac_try;;
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7449 grep -v '^ *+' conftest.er1
>conftest.err
7451 cat conftest.err
>&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.
$ac_objext; then
7457 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.
$ac_ext >&5
7462 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1
=no
7465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
7469 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
7470 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
7472 cat >>confdefs.h
<<\_ACEOF
7473 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
7478 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
7479 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
7480 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 # These are CPU types where:
7488 # the CPU faults on an unaligned access, but at least some
7489 # OSes that support that CPU catch the fault and simulate
7490 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
7491 # the simulation is slow, so we don't want to use it;
7493 # the CPU, I infer (from the old
7495 # XXX: should also check that they don't do weird things (like on arm)
7497 # comment) doesn't fault on unaligned accesses, but doesn't
7498 # do a normal unaligned fetch, either (e.g., presumably, ARM);
7500 # for whatever reason, the test program doesn't work
7501 # (this has been claimed to be the case for several of those
7502 # CPUs - I don't know what the problem is; the problem
7503 # was reported as "the test program dumps core" for SuperH,
7504 # but that's what the test program is *supposed* to do -
7505 # it dumps core before it writes anything, so the test
7506 # for an empty output file should find an empty output
7507 # file and conclude that unaligned accesses don't work).
7509 # This run-time test won't work if you're cross-compiling, so
7510 # in order to support cross-compiling for a particular CPU,
7511 # we have to wire in the list of CPU types anyway, as far as
7512 # I know, so perhaps we should just have a set of CPUs on
7513 # which we know it doesn't work, a set of CPUs on which we
7514 # know it does work, and have the script just fail on other
7515 # cpu types and update it when such a failure occurs.
7517 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
7518 ac_cv_lbl_unaligned_fail
=yes
7522 cat >conftest.c
<<EOF
7523 # include <sys/types.h>
7524 # include <sys/wait.h>
7526 unsigned char a[5] = { 1, 2, 3, 4, 5 };
7531 /* avoid "core dumped" message */
7537 pid = waitpid(pid, &status, 0);
7540 exit(!WIFEXITED(status));
7543 i = *(unsigned int *)&a[1];
7548 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
7549 conftest.c
$LIBS >/dev
/null
2>&1
7550 if test ! -x conftest
; then
7551 ac_cv_lbl_unaligned_fail
=yes
7553 .
/conftest
>conftest.out
7554 if test ! -s conftest.out
; then
7555 ac_cv_lbl_unaligned_fail
=yes
7557 ac_cv_lbl_unaligned_fail
=no
7560 rm -f conftest
* core core.conftest
7565 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
7566 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
7567 if test $ac_cv_lbl_unaligned_fail = yes ; then
7569 cat >>confdefs.h
<<\_ACEOF
7576 # Makefile.in includes rules to generate version.h, so we assume
7577 # that it will be generated if autoconf is used.
7580 cat >>confdefs.h
<<\_ACEOF
7581 #define HAVE_VERSION_H 1
7586 ln -s ${srcdir}/bpf
/net net
7601 # Find a good install program. We prefer a C program (faster),
7602 # so one script is as good as another. But avoid the broken or
7603 # incompatible versions:
7604 # SysV /etc/install, /usr/sbin/install
7605 # SunOS /usr/etc/install
7606 # IRIX /sbin/install
7608 # AmigaOS /C/install, which installs bootblocks on floppy discs
7609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7612 # OS/2's system install, which has a completely different semantic
7613 # ./install, which can be erroneously created by make from ./install.sh.
7614 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7615 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7616 if test -z "$INSTALL"; then
7617 if test "${ac_cv_path_install+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir
=.
7625 # Account for people who put trailing slashes in PATH elements.
7627 .
/ | .
// |
/cC
/* | \
7628 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7629 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7632 # OSF1 and SCO ODT 3.0 have their own names for install.
7633 # Don't use installbsd from OSF since it installs stuff as root
7635 for ac_prog
in ginstall scoinst
install; do
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7638 if test $ac_prog = install &&
7639 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7640 # AIX install. It has an incompatible calling convention.
7642 elif test $ac_prog = install &&
7643 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7644 # program-specific install script used by HP pwplus--don't use.
7647 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7660 if test "${ac_cv_path_install+set}" = set; then
7661 INSTALL
=$ac_cv_path_install
7663 # As a last resort, use the slow shell script. Don't cache a
7664 # value for INSTALL within a source directory, because that will
7665 # break other packages using the cache if that directory is
7666 # removed, or if the value is a relative name.
7667 INSTALL
=$ac_install_sh
7670 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7671 echo "${ECHO_T}$INSTALL" >&6; }
7673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7674 # It thinks the first close brace ends the variable substitution.
7675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7679 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7682 ac_config_headers
="$ac_config_headers config.h"
7685 ac_config_files
="$ac_config_files Makefile"
7687 cat >confcache
<<\_ACEOF
7688 # This file is a shell script that caches the results of configure
7689 # tests run on this system so they can be shared between configure
7690 # scripts and configure runs, see configure's option --config-cache.
7691 # It is not useful on other systems. If it contains results you don't
7692 # want to keep, you may remove or edit it.
7694 # config.status only pays attention to the cache file if you give it
7695 # the --recheck option to rerun configure.
7697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7703 # The following way of writing the cache mishandles newlines in values,
7704 # but we know of no workaround that is simple, portable, and efficient.
7705 # So, we kill variables containing newlines.
7706 # Ultrix sh set writes to stderr and can't be redirected directly,
7707 # and sets the high bit in the cache file unless we assign to the vars.
7709 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7710 eval ac_val
=\$
$ac_var
7714 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7718 _ | IFS | as_nl
) ;; #(
7719 *) $as_unset $ac_var ;;
7725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7726 *${as_nl}ac_space
=\
*)
7727 # `set' does not quote correctly, so add quotes (double-quote
7728 # substitution turns \\\\ into \\, and sed turns \\ into \).
7731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7734 # `set' quotes correctly as required by POSIX, so do not add quotes.
7735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7748 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7749 if test -w "$cache_file"; then
7750 test "x$cache_file" != "x/dev/null" &&
7751 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7752 echo "$as_me: updating cache $cache_file" >&6;}
7753 cat confcache
>$cache_file
7755 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7756 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7761 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7762 # Let make expand exec_prefix.
7763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7765 DEFS
=-DHAVE_CONFIG_H
7769 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7770 # 1. Remove the extension, and $U if already installed.
7771 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7772 ac_i
=`echo "$ac_i" | sed "$ac_script"`
7773 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7774 # will be set to the directory where LIBOBJS objects are built.
7775 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7776 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7780 LTLIBOBJS
=$ac_ltlibobjs
7784 : ${CONFIG_STATUS=./config.status}
7785 ac_clean_files_save
=$ac_clean_files
7786 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7789 cat >$CONFIG_STATUS <<_ACEOF
7791 # Generated by $as_me.
7792 # Run this file to recreate the current configuration.
7793 # Compiler output produced by configure, useful for debugging
7794 # configure, is in config.log if it exists.
7799 SHELL=\${CONFIG_SHELL-$SHELL}
7802 cat >>$CONFIG_STATUS <<\_ACEOF
7803 ## --------------------- ##
7804 ## M4sh Initialization. ##
7805 ## --------------------- ##
7807 # Be more Bourne compatible
7808 DUALCASE
=1; export DUALCASE
# for MKS sh
7809 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7812 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7813 # is contrary to our usage. Disable this feature.
7814 alias -g '${1+"$@"}'='"$@"'
7815 setopt NO_GLOB_SUBST
7817 case `(set -o) 2>/dev/null` in
7818 *posix
*) set -o posix
;;
7827 # Avoid depending upon Character Ranges.
7828 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7829 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7830 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7831 as_cr_digits
='0123456789'
7832 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7834 # The user is always right.
7835 if test "${PATH_SEPARATOR+set}" != set; then
7836 echo "#! /bin/sh" >conf$$.sh
7837 echo "exit 0" >>conf$$.sh
7839 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7847 # Support unset when possible.
7848 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7856 # We need space, tab and new line, in precisely that order. Quoting is
7857 # there to prevent editors from complaining about space-tab.
7858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7859 # splitting by setting IFS to empty value.)
7864 # Find who we are. Look in the path if we contain no directory separator.
7866 *[\\/]* ) as_myself
=$0 ;;
7867 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir
=.
7872 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7878 # We did not find ourselves, most probably we were run as `sh COMMAND'
7879 # in which case we are not to be found in the path.
7880 if test "x$as_myself" = x
; then
7883 if test ! -f "$as_myself"; then
7884 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7885 { (exit 1); exit 1; }
7888 # Work around bugs in pre-3.0 UWIN ksh.
7889 for as_var
in ENV MAIL MAILPATH
7890 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
7898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7900 LC_TELEPHONE LC_TIME
7902 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7903 eval $as_var=C
; export $as_var
7905 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
7909 # Required to use basename.
7910 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7911 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7917 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7918 as_basename
=basename
7924 # Name of the executable.
7925 as_me
=`$as_basename -- "$0" ||
7926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7927 X"$0" : 'X\(//\)$' \| \
7928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7930 sed '/^.*\/\([^/][^/]*\)\/*$/{
7951 test "x$as_lineno_1" != "x$as_lineno_2" &&
7952 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
7954 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7955 # uniformly replaced by the line number. The first 'sed' inserts a
7956 # line-number line after each line using $LINENO; the second 'sed'
7957 # does the real work. The second script uses 'N' to pair each
7958 # line-number line with the line containing $LINENO, and appends
7959 # trailing '-' during substitution so that $LINENO is not a special
7961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7962 # scripts with optimization help from Paolo Bonzini. Blame Lee
7963 # E. McMahon (1931-1989) for sed's syntax. :-)
7975 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7979 chmod +x
"$as_me.lineno" ||
7980 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7981 { (exit 1); exit 1; }; }
7983 # Don't try to exec as it changes $[0], causing all sort of problems
7984 # (the dirname of $[0] is not the place where we might find the
7985 # original and so on. Autoconf is especially sensitive to this).
7987 # Exit status is that of the last command.
7992 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7998 ECHO_C
= ECHO_N
= ECHO_T
=
8001 case `echo 'x\c'` in
8002 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8009 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8010 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8016 rm -f conf$$ conf$$.exe conf$$.
file
8017 if test -d conf$$.dir
; then
8018 rm -f conf$$.dir
/conf$$.
file
8024 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8026 # ... but there are two gotchas:
8027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8029 # In both cases, we have to default to `cp -p'.
8030 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8032 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8037 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8038 rmdir conf$$.dir
2>/dev
/null
8040 if mkdir
-p .
2>/dev
/null
; then
8043 test -d .
/-p && rmdir .
/-p
8047 if test -x / >/dev
/null
2>&1; then
8050 if ls -dL / >/dev
/null
2>&1; then
8057 if test -d "$1"; then
8063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8064 ???[sx]*):;;*)false;;esac;fi
8068 as_executable_p
=$as_test_x
8070 # Sed expression to map a string onto a valid CPP name.
8071 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8073 # Sed expression to map a string onto a valid variable name.
8074 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8079 # Save the log message, to keep $[0] and so on meaningful, and to
8080 # report actual input values of CONFIG_FILES etc. instead of their
8081 # values after options handling.
8083 This file was extended by $as_me, which was
8084 generated by GNU Autoconf 2.61. Invocation command line was
8086 CONFIG_FILES = $CONFIG_FILES
8087 CONFIG_HEADERS = $CONFIG_HEADERS
8088 CONFIG_LINKS = $CONFIG_LINKS
8089 CONFIG_COMMANDS = $CONFIG_COMMANDS
8092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8097 cat >>$CONFIG_STATUS <<_ACEOF
8098 # Files that config.status was made for.
8099 config_files="$ac_config_files"
8100 config_headers="$ac_config_headers"
8104 cat >>$CONFIG_STATUS <<\_ACEOF
8106 \`$as_me' instantiates files from templates according to the
8107 current configuration.
8109 Usage: $0 [OPTIONS] [FILE]...
8111 -h, --help print this help, then exit
8112 -V, --version print version number and configuration settings, then exit
8113 -q, --quiet do not print progress messages
8114 -d, --debug don't remove temporary files
8115 --recheck update $as_me by reconfiguring in the same conditions
8116 --file=FILE[:TEMPLATE]
8117 instantiate the configuration file FILE
8118 --header=FILE[:TEMPLATE]
8119 instantiate the configuration header FILE
8121 Configuration files:
8124 Configuration headers:
8127 Report bugs to <bug-autoconf@gnu.org>."
8130 cat >>$CONFIG_STATUS <<_ACEOF
8133 configured by $0, generated by GNU Autoconf 2.61,
8134 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8136 Copyright (C) 2006 Free Software Foundation, Inc.
8137 This config.status script is free software; the Free Software Foundation
8138 gives unlimited permission to copy, distribute and modify it."
8145 cat >>$CONFIG_STATUS <<\_ACEOF
8146 # If no file are specified by the user, then we need to provide default
8147 # value. By we need to know if files were specified by the user.
8153 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8154 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8165 # Handling of the options.
8166 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8168 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8169 echo "$ac_cs_version"; exit ;;
8170 --debug |
--debu |
--deb |
--de |
--d |
-d )
8172 --file |
--fil |
--fi |
--f )
8174 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8175 ac_need_defaults
=false
;;
8176 --header |
--heade |
--head |
--hea )
8178 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8179 ac_need_defaults
=false
;;
8181 # Conflict between --help and --header
8182 { echo "$as_me: error: ambiguous option: $1
8183 Try \`$0 --help' for more information." >&2
8184 { (exit 1); exit 1; }; };;
8185 --help |
--hel |
-h )
8186 echo "$ac_cs_usage"; exit ;;
8187 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8188 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8192 -*) { echo "$as_me: error: unrecognized option: $1
8193 Try \`$0 --help' for more information." >&2
8194 { (exit 1); exit 1; }; } ;;
8196 *) ac_config_targets
="$ac_config_targets $1"
8197 ac_need_defaults
=false
;;
8203 ac_configure_extra_args
=
8205 if $ac_cs_silent; then
8207 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8211 cat >>$CONFIG_STATUS <<_ACEOF
8212 if \$ac_cs_recheck; then
8213 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8216 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8220 cat >>$CONFIG_STATUS <<\_ACEOF
8224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8225 ## Running $as_me. ##
8231 cat >>$CONFIG_STATUS <<_ACEOF
8234 cat >>$CONFIG_STATUS <<\_ACEOF
8236 # Handling of arguments.
8237 for ac_config_target
in $ac_config_targets
8239 case $ac_config_target in
8240 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8241 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8243 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8244 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8245 { (exit 1); exit 1; }; };;
8250 # If the user did not use the arguments to specify the items to instantiate,
8251 # then the envvar interface is used. Set only those that are not.
8252 # We use the long form for the default assignment because of an extremely
8253 # bizarre bug on SunOS 4.1.3.
8254 if $ac_need_defaults; then
8255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8256 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8259 # Have a temporary directory for convenience. Make it in the build tree
8260 # simply because there is no reason against having it here, and in addition,
8261 # creating and moving files from /tmp can sometimes cause problems.
8262 # Hook for its removal unless debugging.
8263 # Note that there is a small window in which the directory will not be cleaned:
8264 # after its creation but before its name has been assigned to `$tmp'.
8268 trap 'exit_status=$?
8269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8271 trap '{ (exit 1); exit 1; }' 1 2 13 15
8273 # Create a (secure) tmp directory for tmp files.
8276 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8277 test -n "$tmp" && test -d "$tmp"
8280 tmp
=.
/conf$$
-$RANDOM
8281 (umask 077 && mkdir
"$tmp")
8284 echo "$me: cannot create a temporary directory in ." >&2
8285 { (exit 1); exit 1; }
8289 # Set up the sed scripts for CONFIG_FILES section.
8292 # No need to generate the scripts if there are no CONFIG_FILES.
8293 # This happens for instance when ./config.status config.h
8294 if test -n "$CONFIG_FILES"; then
8301 for ac_last_try
in false false false false false
:; do
8302 cat >conf$
$subs.
sed <<_ACEOF
8303 SHELL!$SHELL$ac_delim
8304 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8305 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8306 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8307 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8308 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8309 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8310 exec_prefix!$exec_prefix$ac_delim
8311 prefix!$prefix$ac_delim
8312 program_transform_name!$program_transform_name$ac_delim
8313 bindir!$bindir$ac_delim
8314 sbindir!$sbindir$ac_delim
8315 libexecdir!$libexecdir$ac_delim
8316 datarootdir!$datarootdir$ac_delim
8317 datadir!$datadir$ac_delim
8318 sysconfdir!$sysconfdir$ac_delim
8319 sharedstatedir!$sharedstatedir$ac_delim
8320 localstatedir!$localstatedir$ac_delim
8321 includedir!$includedir$ac_delim
8322 oldincludedir!$oldincludedir$ac_delim
8323 docdir!$docdir$ac_delim
8324 infodir!$infodir$ac_delim
8325 htmldir!$htmldir$ac_delim
8326 dvidir!$dvidir$ac_delim
8327 pdfdir!$pdfdir$ac_delim
8328 psdir!$psdir$ac_delim
8329 libdir!$libdir$ac_delim
8330 localedir!$localedir$ac_delim
8331 mandir!$mandir$ac_delim
8333 ECHO_C!$ECHO_C$ac_delim
8334 ECHO_N!$ECHO_N$ac_delim
8335 ECHO_T!$ECHO_T$ac_delim
8337 build_alias!$build_alias$ac_delim
8338 host_alias!$host_alias$ac_delim
8339 target_alias!$target_alias$ac_delim
8340 build!$build$ac_delim
8341 build_cpu!$build_cpu$ac_delim
8342 build_vendor!$build_vendor$ac_delim
8343 build_os!$build_os$ac_delim
8345 host_cpu!$host_cpu$ac_delim
8346 host_vendor!$host_vendor$ac_delim
8347 host_os!$host_os$ac_delim
8348 target!$target$ac_delim
8349 target_cpu!$target_cpu$ac_delim
8350 target_vendor!$target_vendor$ac_delim
8351 target_os!$target_os$ac_delim
8352 SHLICC2!$SHLICC2$ac_delim
8354 CFLAGS!$CFLAGS$ac_delim
8355 LDFLAGS!$LDFLAGS$ac_delim
8356 CPPFLAGS!$CPPFLAGS$ac_delim
8357 ac_ct_CC!$ac_ct_CC$ac_delim
8358 EXEEXT!$EXEEXT$ac_delim
8359 OBJEXT!$OBJEXT$ac_delim
8362 EGREP!$EGREP$ac_delim
8363 LIBOBJS!$LIBOBJS$ac_delim
8364 V_LEX!$V_LEX$ac_delim
8365 V_YACC!$V_YACC$ac_delim
8366 RANLIB!$RANLIB$ac_delim
8367 V_CCOPT!$V_CCOPT$ac_delim
8368 V_DEFS!$V_DEFS$ac_delim
8369 V_INCLS!$V_INCLS$ac_delim
8370 V_LIBS!$V_LIBS$ac_delim
8371 V_PCAP!$V_PCAP$ac_delim
8372 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
8373 V_RANLIB!$V_RANLIB$ac_delim
8375 DYEXT!$DYEXT$ac_delim
8376 DAGLIBS!$DAGLIBS$ac_delim
8377 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8378 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8379 INSTALL_DATA!$INSTALL_DATA$ac_delim
8380 LTLIBOBJS!$LTLIBOBJS$ac_delim
8383 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
8385 elif $ac_last_try; then
8386 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8388 { (exit 1); exit 1; }; }
8390 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8394 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8395 if test -n "$ac_eof"; then
8396 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8397 ac_eof
=`expr $ac_eof + 1`
8400 cat >>$CONFIG_STATUS <<_ACEOF
8401 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8406 s/^/s,@/; s/!/@,|#_!!_#|/
8409 s/'"$ac_delim"'$/,g/; t
8411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8412 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8413 rm -f conf$
$subs.
sed
8414 cat >>$CONFIG_STATUS <<_ACEOF
8421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8423 # trailing colons and then remove the whole line if VPATH becomes empty
8424 # (actually we leave an empty line to preserve line numbers).
8425 if test "x$srcdir" = x.
; then
8426 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8430 s/^\([^=]*=[ ]*\):*/\1/
8436 cat >>$CONFIG_STATUS <<\_ACEOF
8437 fi # test -n "$CONFIG_FILES"
8440 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
8443 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8445 case $ac_mode$ac_tag in
8447 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8448 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8449 { (exit 1); exit 1; }; };;
8450 :[FH
]-) ac_tag
=-:-;;
8451 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8468 -) ac_f
="$tmp/stdin";;
8469 *) # Look for the file first in the build tree, then in the source tree
8470 # (if the path is not absolute). The absolute path cannot be DOS-style,
8471 # because $ac_f cannot contain `:'.
8475 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8477 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8478 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8479 { (exit 1); exit 1; }; };;
8481 ac_file_inputs
="$ac_file_inputs $ac_f"
8484 # Let's still pretend it is `configure' which instantiates (i.e., don't
8485 # use $as_me), people would be surprised to read:
8486 # /* config.h. Generated by config.status. */
8487 configure_input
="Generated from "`IFS=:
8488 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8489 if test x
"$ac_file" != x-
; then
8490 configure_input
="$ac_file. $configure_input"
8491 { echo "$as_me:$LINENO: creating $ac_file" >&5
8492 echo "$as_me: creating $ac_file" >&6;}
8496 *:-:* |
*:-) cat >"$tmp/stdin";;
8501 ac_dir
=`$as_dirname -- "$ac_file" ||
8502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8503 X"$ac_file" : 'X\(//\)[^/]' \| \
8504 X"$ac_file" : 'X\(//\)$' \| \
8505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8526 -*) as_dir
=.
/$as_dir;;
8528 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
8532 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8533 *) as_qdir
=$as_dir;;
8535 as_dirs
="'$as_qdir' $as_dirs"
8536 as_dir
=`$as_dirname -- "$as_dir" ||
8537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8538 X"$as_dir" : 'X\(//\)[^/]' \| \
8539 X"$as_dir" : 'X\(//\)$' \| \
8540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8559 test -d "$as_dir" && break
8561 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8562 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8563 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8564 { (exit 1); exit 1; }; }; }
8568 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8570 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8571 # A ".." for each directory in $ac_dir_suffix.
8572 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8573 case $ac_top_builddir_sub in
8574 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8575 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8578 ac_abs_top_builddir
=$ac_pwd
8579 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8580 # for backward compatibility:
8581 ac_top_builddir
=$ac_top_build_prefix
8584 .
) # We are building in place.
8586 ac_top_srcdir
=$ac_top_builddir_sub
8587 ac_abs_top_srcdir
=$ac_pwd ;;
8588 [\\/]* | ?
:[\\/]* ) # Absolute name.
8589 ac_srcdir
=$srcdir$ac_dir_suffix;
8590 ac_top_srcdir
=$srcdir
8591 ac_abs_top_srcdir
=$srcdir ;;
8593 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8594 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8595 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8597 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8607 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8608 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8612 cat >>$CONFIG_STATUS <<\_ACEOF
8613 # If the template does not know about datarootdir, expand it.
8614 # FIXME: This hack should be removed a few years after 2.60.
8615 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8617 case `sed -n '/datarootdir/ {
8626 ' $ac_file_inputs` in
8627 *datarootdir
*) ac_datarootdir_seen
=yes;;
8628 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8629 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8630 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8632 cat >>$CONFIG_STATUS <<_ACEOF
8633 ac_datarootdir_hack='
8634 s&@datadir@&$datadir&g
8635 s&@docdir@&$docdir&g
8636 s&@infodir@&$infodir&g
8637 s&@localedir@&$localedir&g
8638 s&@mandir@&$mandir&g
8639 s&\\\${datarootdir}&$datarootdir&g' ;;
8643 # Neutralize VPATH when `$srcdir' = `.'.
8644 # Shell code in configure.ac might set extrasub.
8645 # FIXME: do we really want to maintain this feature?
8646 cat >>$CONFIG_STATUS <<_ACEOF
8650 cat >>$CONFIG_STATUS <<\_ACEOF
8652 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8653 s
&@configure_input@
&$configure_input&;t t
8654 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8655 s
&@srcdir@
&$ac_srcdir&;t t
8656 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8657 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8658 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8659 s
&@builddir@
&$ac_builddir&;t t
8660 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8661 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8662 s
&@INSTALL@
&$ac_INSTALL&;t t
8663 $ac_datarootdir_hack
8664 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
8666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8667 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8669 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8670 which seems to be undefined. Please make sure it is defined." >&5
8671 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8672 which seems to be undefined. Please make sure it is defined." >&2;}
8676 -) cat "$tmp/out"; rm -f "$tmp/out";;
8677 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8686 # Transform confdefs.h into a sed script `conftest.defines', that
8687 # substitutes the proper values into config.h.in to produce config.h.
8688 rm -f conftest.defines conftest.
tail
8689 # First, append a space to every undef/define line, to ease matching.
8690 echo 's/$/ /' >conftest.defines
8691 # Then, protect against being on the right side of a sed subst, or in
8692 # an unquoted here document, in config.status. If some macros were
8693 # called several times there might be several #defines for the same
8694 # symbol, which is useless. But do not sort them, since the last
8695 # AC_DEFINE must be honored.
8696 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
8697 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8698 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8699 # PARAMS is the parameter list in the macro definition--in most cases, it's
8700 # just an empty string.
8701 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8702 ac_dB
='\\)[ (].*,\\1define\\2'
8710 s/^[ ]*#[ ]*define[ ][ ]*//
8715 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8716 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8717 ' >>conftest.defines
8719 # Remove the space that was appended to ease matching.
8720 # Then replace #undef with comments. This is necessary, for
8721 # example, in the case of _POSIX_SOURCE, which is predefined and required
8722 # on some systems where configure will not decide to define it.
8723 # (The regexp can be short, since the line contains either #define or #undef.)
8725 s,^[ #]*u.*,/* & */,' >>conftest.defines
8727 # Break up conftest.defines:
8730 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8731 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8732 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8734 ac_in
='$ac_file_inputs'
8735 ac_out
='"$tmp/out1"'
8736 ac_nxt
='"$tmp/out2"'
8740 # Write a here document:
8741 cat >>$CONFIG_STATUS <<_ACEOF
8742 # First, check the format of the line:
8743 cat >"\$tmp/defines.sed" <<\\CEOF
8744 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8745 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8749 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
8751 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8752 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
8753 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
8754 grep . conftest.
tail >/dev
/null ||
break
8755 rm -f conftest.defines
8756 mv conftest.
tail conftest.defines
8758 rm -f conftest.defines conftest.
tail
8760 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8761 cat >>$CONFIG_STATUS <<\_ACEOF
8762 if test x
"$ac_file" != x-
; then
8763 echo "/* $configure_input */" >"$tmp/config.h"
8764 cat "$ac_result" >>"$tmp/config.h"
8765 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
8766 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8767 echo "$as_me: $ac_file is unchanged" >&6;}
8770 mv "$tmp/config.h" $ac_file
8773 echo "/* $configure_input */"
8785 { (exit 0); exit 0; }
8787 chmod +x
$CONFIG_STATUS
8788 ac_clean_files
=$ac_clean_files_save
8791 # configure is writing to config.log, and then calls config.status.
8792 # config.status does its own redirection, appending to config.log.
8793 # Unfortunately, on DOS this fails, as config.log is still kept open
8794 # by configure, so config.status won't be able to write to it; its
8795 # output is simply discarded. So we exec the FD to /dev/null,
8796 # effectively closing config.log, so it can be properly (re)opened and
8797 # appended to by config.status. When coming back to configure, we
8798 # need to make the FD available again.
8799 if test "$no_create" != yes; then
8801 ac_config_status_args
=
8802 test "$silent" = yes &&
8803 ac_config_status_args
="$ac_config_status_args --quiet"
8805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8808 # would make configure fail if this is the last instruction.
8809 $ac_cs_success ||
{ (exit 1); exit 1; }
8813 if test -f .devel
; then