configure
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:995k
- for ac_func in setitimer
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- # functions to support the clock.
- for ac_func in mktime stime times sysconf
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- # missing from hp-ux
- for ac_func in if_nametoindex
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
- echo "$as_me:$LINENO: checking for $ac_func" >&5
- echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
- if eval "test "${$as_ac_var+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $ac_func innocuous_$ac_func
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $ac_func
- /* Override any gcc2 internal prototype to avoid an error. */
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- char (*f) () = $ac_func;
- #endif
- #ifdef __cplusplus
- }
- #endif
- int
- main ()
- {
- return f != $ac_func;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "$as_ac_var=no"
- fi
- rm -f conftest.err conftest.$ac_objext
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
- echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
- if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
- #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- echo "$as_me:$LINENO: checking for SIOCGIFADDR in sys/ioctl.h" >&5
- echo $ECHO_N "checking for SIOCGIFADDR in sys/ioctl.h... $ECHO_C" >&6
- if test "${cv_sys_ioctl_h_has_SIOCGIFADDR+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_IOCTL_H
- #include <sys/ioctl.h>
- #endif
- #ifdef SIOCGIFADDR
- xxxyesxxx
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "xxxyesxxx" >/dev/null 2>&1; then
- cv_sys_ioctl_h_has_SIOCGIFADDR=yes
- else
- cv_sys_ioctl_h_has_SIOCGIFADDR=no
- fi
- rm -f conftest*
- fi
- echo "$as_me:$LINENO: result: $cv_sys_ioctl_h_has_SIOCGIFADDR" >&5
- echo "${ECHO_T}$cv_sys_ioctl_h_has_SIOCGIFADDR" >&6
- if test $cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then
- cat >>confdefs.h <<_ACEOF
- #define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
- _ACEOF
- fi
- # ultrix
- echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
- echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
- if test "${fu_cv_sys_stat_fs_data+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "$cross_compiling" = yes; then
- fu_cv_sys_stat_fs_data=no
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #ifdef HAVE_SYS_MOUNT_H
- #include <sys/mount.h>
- #endif
- #ifdef HAVE_SYS_FS_TYPES_H
- #include <sys/fs_types.h>
- #endif
- main ()
- {
- struct fs_data fsd;
- /* Ultrix's statfs returns 1 for success,
- 0 for not mounted, -1 for failure. */
- exit (statfs (".", &fsd) != 1);
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: "$ac_link"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- fu_cv_sys_stat_fs_data=yes
- else
- echo "$as_me: program exited with status $ac_status" >&5
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ( exit $ac_status )
- fu_cv_sys_stat_fs_data=no
- fi
- rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
- echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
- if test $fu_cv_sys_stat_fs_data = yes; then
- cat >>confdefs.h <<_ACEOF
- #define STAT_STATFS_FS_DATA 1
- _ACEOF
- fi
- # check if compiler pre-processor defines __FUNCTION__
- echo "$as_me:$LINENO: checking if __FUNCTION__ is defined" >&5
- echo $ECHO_N "checking if __FUNCTION__ is defined... $ECHO_C" >&6
- if test "${ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- int
- main ()
- {
- char *cp = __FUNCTION__;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" >&5
- echo "${ECHO_T}$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" >&6
- if test "x$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" = "xyes"; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
- _ACEOF
- fi
- #--------------------------------------------------------------
- # on SCO Unixware 7.1.4 (SCO compiler), "static inline" functions
- # are not supported, so this disables the whole inline thing if it
- # doesn't work properly. Should have no effect on other platforms.
- echo "$as_me:$LINENO: checking whether static inline functions are broken (Unixware)" >&5
- echo $ECHO_N "checking whether static inline functions are broken (Unixware)... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- int
- main ()
- {
- static inline int nested_inline_function(void) {
- return 0;
- }
- inline int main_inline_function( void ) {
- return nested_inline_function();
- }
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_BROKEN_INLINE=no
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_BROKEN_INLINE=yes
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "x$ac_cv_BROKEN_INLINE" = x"yes" ; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define NETSNMP_BROKEN_INLINE 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # openbsd seems to have dropped m_clusters and m_clfree from mbstat
- ac_safe_struct=`echo "mbstat" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "m_clusters" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for mbstat.m_clusters" >&5
- echo $ECHO_N "checking for mbstat.m_clusters... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #if HAVE_SYS_MBUF_H
- #include <sys/mbuf.h>
- #endif
- int
- main ()
- {
- struct mbstat testit;
- testit.m_clusters $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # openbsd seems to have dropped m_mbufs from mbstat too
- ac_safe_struct=`echo "mbstat" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "m_mbufs" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for mbstat.m_mbufs" >&5
- echo $ECHO_N "checking for mbstat.m_mbufs... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #if HAVE_SYS_MBUF_H
- #include <sys/mbuf.h>
- #endif
- int
- main ()
- {
- struct mbstat testit;
- testit.m_mbufs $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "sigaction" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "sa_sigaction" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for sigaction.sa_sigaction" >&5
- echo $ECHO_N "checking for sigaction.sa_sigaction... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #include <sys/signal.h>
- int
- main ()
- {
- struct sigaction testit;
- testit.sa_sigaction $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "tm" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "tm_gmtoff" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for tm.tm_gmtoff" >&5
- echo $ECHO_N "checking for tm.tm_gmtoff... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <sys/types.h>
- #if TIME_WITH_SYS_TIME
- # include <sys/time.h>
- # include <time.h>
- #else
- # if HAVE_SYS_TIME_H
- # include <sys/time.h>
- # else
- # include <time.h>
- # endif
- #endif
- int
- main ()
- {
- struct tm testit;
- testit.tm_gmtoff $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "sockaddr" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "sa_len" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for sockaddr.sa_len" >&5
- echo $ECHO_N "checking for sockaddr.sa_len... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- int
- main ()
- {
- struct sockaddr testit;
- testit.sa_len $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "sockaddr" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "sa_union.sa_generic.sa_family2" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for sockaddr.sa_union.sa_generic.sa_family2" >&5
- echo $ECHO_N "checking for sockaddr.sa_union.sa_generic.sa_family2... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- int
- main ()
- {
- struct sockaddr testit;
- testit.sa_union.sa_generic.sa_family2 $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "rt_dst" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for rtentry.rt_dst" >&5
- echo $ECHO_N "checking for rtentry.rt_dst... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry testit;
- testit.rt_dst $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # checking for 4.3 vs 4.4 rtentry.
- echo "$as_me:$LINENO: checking type of rtentry structure" >&5
- echo $ECHO_N "checking type of rtentry structure... $ECHO_C" >&6
- if test "${ac_cv_RTENTRY_TYPE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- # 4.4 compat
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- #ifndef STRUCT_RTENTRY_HAS_RT_DST
- #define rt_dst rt_nodes->rn_key
- #endif
- struct rtentry rt;
- rt.rt_nodes[0].rn_flags = 1;
- rt.rt_dst;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_RTENTRY_TYPE="BSD-4.4"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- # 4.3 compat
- if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry rt;
- rt.rt_hash;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_RTENTRY_TYPE="BSD-4.3"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- # else ack.
- if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
- echo "$as_me:$LINENO: result: Unknown" >&5
- echo "${ECHO_T}Unknown" >&6
- ac_cv_RTENTRY_TYPE="unknown"
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_RTENTRY_TYPE" >&5
- echo "${ECHO_T}$ac_cv_RTENTRY_TYPE" >&6
- if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then
- cat >>confdefs.h <<_ACEOF
- #define RTENTRY_4_4 1
- _ACEOF
- fi
- # checking for alpha's ortentry vs rtentry
- if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
- echo "$as_me:$LINENO: checking for struct rtentry" >&5
- echo $ECHO_N "checking for struct rtentry... $ECHO_C" >&6
- if test "${ac_cv_struct_rtentry+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #define KERNEL
- #include <net/route.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "ortentry" >/dev/null 2>&1; then
- ac_cv_struct_rtentry=ortentry
- else
- ac_cv_struct_rtentry=rtentry
- fi
- rm -f conftest*
- if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
- ac_cv_struct_rtentry="rtentry"
- else
- ac_cv_struct_rtentry="ortentry"
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_struct_rtentry" >&5
- echo "${ECHO_T}$ac_cv_struct_rtentry" >&6
- else
- RTENTRY_TYPE="rtentry"
- ac_cv_struct_rtentry="rtentry"
- fi
- if test "x$ac_cv_struct_rtentry" != "x"; then
- cat >>confdefs.h <<_ACEOF
- #define RTENTRY struct ${ac_cv_struct_rtentry}
- _ACEOF
- else
- cat >>confdefs.h <<_ACEOF
- #define RTENTRY struct rtentry
- _ACEOF
- fi
- # check for 4.3's rtentry->rt_next
- if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.3"; then
- echo "$as_me:$LINENO: checking for struct rtentry has a rt_next node" >&5
- echo $ECHO_N "checking for struct rtentry has a rt_next node... $ECHO_C" >&6
- if test "${ac_cv_struct_rtentry_rt_next+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry rt;
- rt.rt_next;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_struct_rtentry_rt_next=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_struct_rtentry_rt_next=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- echo "$as_me:$LINENO: result: $ac_cv_struct_rtentry_rt_next" >&5
- echo "${ECHO_T}$ac_cv_struct_rtentry_rt_next" >&6
- if test "x$ac_cv_struct_rtentry_rt_next" = "xyes"; then
- cat >>confdefs.h <<_ACEOF
- #define RTENTRY_RT_NEXT 1
- _ACEOF
- fi
- fi
- # Check struct rtentry for various things.
- ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "rt_unit" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for rtentry.rt_unit" >&5
- echo $ECHO_N "checking for rtentry.rt_unit... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry testit;
- testit.rt_unit $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "rt_refcnt" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for rtentry.rt_refcnt" >&5
- echo $ECHO_N "checking for rtentry.rt_refcnt... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry testit;
- testit.rt_refcnt $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "rt_hash" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for rtentry.rt_hash" >&5
- echo $ECHO_N "checking for rtentry.rt_hash... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry testit;
- testit.rt_hash $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "rt_use" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for rtentry.rt_use" >&5
- echo $ECHO_N "checking for rtentry.rt_use... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #define KERNEL
- #define _KERNEL
- #include <sys/socket.h>
- #undef KERNEL
- #undef _KERNEL
- #include <net/route.h>
- int
- main ()
- {
- struct rtentry testit;
- testit.rt_use $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # Check tcpstat for tcpstat.tcp_rcvmemdrop
- ac_safe_struct=`echo "tcpstat" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "tcp_rcvmemdrop" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for tcpstat.tcp_rcvmemdrop" >&5
- echo $ECHO_N "checking for tcpstat.tcp_rcvmemdrop... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #ifdef HAVE_SYS_TIMEOUT_H
- #include <sys/timeout.h>
- #endif
- #include <netinet/tcp.h>
- #ifdef HAVE_NETINET_TCP_TIMER_H
- #include <netinet/tcp_timer.h>
- #endif
- #ifdef HAVE_NETINET_TCP_VAR_H
- #include <netinet/tcp_var.h>
- #endif
- int
- main ()
- {
- struct tcpstat testit;
- testit.tcp_rcvmemdrop $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # irix checks
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_mtu" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_mtu" >&5
- echo $ECHO_N "checking for ifnet.if_mtu... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_mtu $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xno"; then
- echo "$as_me:$LINENO: checking if _KERNEL needs to be defined for if_mtu" >&5
- echo $ECHO_N "checking if _KERNEL needs to be defined for if_mtu... $ECHO_C" >&6
- if test "${ac_cv_IFNET_NEEDS_KERNEL+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
- ac_cv_IFNET_NEEDS_KERNEL=no
- else
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #define _KERNEL 1
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_mtu = 0;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_IFNET_NEEDS_KERNEL=yes
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_cv_IFNET_NEEDS_KERNEL=no
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- echo "$as_me:$LINENO: result: $ac_cv_IFNET_NEEDS_KERNEL" >&5
- echo "${ECHO_T}$ac_cv_IFNET_NEEDS_KERNEL" >&6
- if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then
- cat >>confdefs.h <<_ACEOF
- #define IFNET_NEEDS_KERNEL 1
- _ACEOF
- fi
- fi
- ac_safe_struct=`echo "ifaddr" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "ifa_next" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifaddr.ifa_next" >&5
- echo $ECHO_N "checking for ifaddr.ifa_next... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- int
- main ()
- {
- struct ifaddr testit;
- testit.ifa_next $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- # Check ifnet entries using macro defined in aclocal.m4.
- #
- # XXX Broken on FreeBSD where these are #define'd in <net/if.h>
- #
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_baudrate" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_baudrate" >&5
- echo $ECHO_N "checking for ifnet.if_baudrate... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_baudrate $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_baudrate.ifs_value" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_baudrate.ifs_value" >&5
- echo $ECHO_N "checking for ifnet.if_baudrate.ifs_value... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_baudrate.ifs_value $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_speed" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_speed" >&5
- echo $ECHO_N "checking for ifnet.if_speed... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_speed $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_type" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_type" >&5
- echo $ECHO_N "checking for ifnet.if_type... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_type $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_imcasts" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_imcasts" >&5
- echo $ECHO_N "checking for ifnet.if_imcasts... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_imcasts $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_iqdrops" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_iqdrops" >&5
- echo $ECHO_N "checking for ifnet.if_iqdrops... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_iqdrops $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_noproto" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_noproto" >&5
- echo $ECHO_N "checking for ifnet.if_noproto... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_noproto $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_omcasts" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_omcasts" >&5
- echo $ECHO_N "checking for ifnet.if_omcasts... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_omcasts $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_xname" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_xname" >&5
- echo $ECHO_N "checking for ifnet.if_xname... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "xno" = "x"; then
- defineit="= 0"
- elif test "xno" = "xno"; then
- defineit=""
- else
- defineit="no"
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_xname $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_lastchange.tv_sec" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_lastchange.tv_sec" >&5
- echo $ECHO_N "checking for ifnet.if_lastchange.tv_sec... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_lastchange.tv_sec $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_obytes" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_obytes" >&5
- echo $ECHO_N "checking for ifnet.if_obytes... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_obytes $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_ibytes" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_ibytes" >&5
- echo $ECHO_N "checking for ifnet.if_ibytes... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_ibytes $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_addrlist" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_addrlist" >&5
- echo $ECHO_N "checking for ifnet.if_addrlist... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_addrlist $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "if_addrhead.tqh_first" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for ifnet.if_addrhead.tqh_first" >&5
- echo $ECHO_N "checking for ifnet.if_addrhead.tqh_first... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #ifdef IFNET_NEEDS_KERNEL
- #define _KERNEL 1
- #endif
- #include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #include <net/if.h>
- #ifdef HAVE_NET_IF_VAR_H
- #include <net/if_var.h>
- #endif
- #ifdef HAVE_SYS_QUEUE_H
- #include <sys/queue.h>
- #endif
- #ifdef linux
- struct ifnet {
- char *if_name; /* name, e.g. "en" or "lo" */
- short if_unit; /* sub-unit for lower level driver */
- short if_mtu; /* maximum transmission unit */
- short if_flags; /* up/down, broadcast, etc. */
- int if_metric; /* routing metric (external only) */
- char if_hwaddr [6]; /* ethernet address */
- int if_type; /* interface type: 1=generic,
- 28=slip, ether=6, loopback=24 */
- int if_speed; /* interface speed: in bits/sec */
- struct sockaddr if_addr; /* interface's address */
- struct sockaddr ifu_broadaddr; /* broadcast address */
- struct sockaddr ia_subnetmask; /* interface's mask */
- struct ifqueue {
- int ifq_len;
- int ifq_drops;
- } if_snd; /* output queue */
- int if_ibytes; /* octets received on interface */
- int if_ipackets; /* packets received on interface */
- int if_ierrors; /* input errors on interface */
- int if_iqdrops; /* input queue overruns */
- int if_obytes; /* octets sent on interface */
- int if_opackets; /* packets sent on interface */
- int if_oerrors; /* output errors on interface */
- int if_collisions; /* collisions on csma interfaces */
- /* end statistics */
- struct ifnet *if_next;
- };
- #endif
- int
- main ()
- {
- struct ifnet testit;
- testit.if_addrhead.tqh_first $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "udpstat" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "udps_discard" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for udpstat.udps_discard" >&5
- echo $ECHO_N "checking for udpstat.udps_discard... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <sys/types.h>
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if HAVE_NETINET_IP_VAR_H
- #include <netinet/ip_var.h>
- #endif
- #if HAVE_NETINET_UDP_H
- #include <netinet/udp.h>
- #endif
- #if HAVE_NETINET_UDP_VAR_H
- #include <netinet/udp_var.h>
- #endif
- int
- main ()
- {
- struct udpstat testit;
- testit.udps_discard $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: "$ac_try"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "${ac_safe_all}=yes"
- else
- echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- eval "${ac_safe_all}=no"
- fi
- rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if eval "test "x$`echo ${ac_safe_all}`" = "xyes""; then
- echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6
- cat >>confdefs.h <<_ACEOF
- #define $ac_uc_define 1
- _ACEOF
- else
- echo "$as_me:$LINENO: result: no" >&5
- echo "${ECHO_T}no" >&6
- fi
- ac_safe_struct=`echo "udpstat" | sed 'y%./+-%__p_%'`
- ac_safe_member=`echo "udps_noport" | sed 'y%./+-%__p_%'`
- ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
- ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- echo "$as_me:$LINENO: checking for udpstat.udps_noport" >&5
- echo $ECHO_N "checking for udpstat.udps_noport... $ECHO_C" >&6
- if eval "test "${$ac_safe_all+set}" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "x" = "x"; then
- defineit="= 0"
- elif test "x" = "xno"; then
- defineit=""
- else
- defineit=""
- fi
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h. */
- _ACEOF
- cat confdefs.h >>conftest.$ac_ext
- cat >>conftest.$ac_ext <<_ACEOF
- /* end confdefs.h. */
- #include <sys/types.h>
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if HAVE_NETINET_IP_VAR_H
- #include <netinet/ip_var.h>
- #endif
- #if HAVE_NETINET_UDP_H
- #include <netinet/udp.h>
- #endif
- #if HAVE_NETINET_UDP_VAR_H
- #include <netinet/udp_var.h>
- #endif
- int
- main ()
- {
- struct udpstat testit;
- testit.udps_noport $defineit;
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.$ac_objext
- if { (eval echo "$as_me:$LINENO: "$ac_compile"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: $? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag"