103 lines
2.7 KiB
Plaintext
103 lines
2.7 KiB
Plaintext
$NetBSD: patch-af,v 1.8 2013/07/31 06:53:21 adam Exp $
|
|
|
|
--- configure.orig 2013-05-31 12:00:58.000000000 +0000
|
|
+++ configure
|
|
@@ -2405,6 +2405,63 @@ rm -f conftest.val
|
|
|
|
} # ac_fn_c_compute_int
|
|
|
|
+# ac_fn_c_check_member LINENO AGGR MEMBER ax_cv_socklen_t_equiv INCLUDES
|
|
+# ----------------------------------------------------------------------
|
|
+# Tries to find if the field MEMBER exists in type AGGR, after including
|
|
+# INCLUDES, setting cache variable VAR accordingly.
|
|
+ac_fn_c_check_member ()
|
|
+{
|
|
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
|
+$as_echo_n "checking for $2.$3... " >&6; }
|
|
+if eval \${$4+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+$5
|
|
+int
|
|
+main ()
|
|
+{
|
|
+static $2 ac_aggr;
|
|
+if (ac_aggr.$3)
|
|
+return 0;
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ eval "$4=yes"
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+$5
|
|
+int
|
|
+main ()
|
|
+{
|
|
+static $2 ac_aggr;
|
|
+if (sizeof ac_aggr.$3)
|
|
+return 0;
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ eval "$4=yes"
|
|
+else
|
|
+ eval "$4=no"
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+fi
|
|
+eval ac_res=\$$4
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
+$as_echo "$ac_res" >&6; }
|
|
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
+
|
|
+} # ac_fn_c_check_member
|
|
+
|
|
# ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
|
|
# ---------------------------------------------------------------
|
|
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
|
@@ -14182,6 +14239,7 @@ for ac_header in \
|
|
sys/mman.h sys/file.h sys/wait.h \
|
|
unistd.h signal.h libgen.h stropts.h \
|
|
syslog.h pwd.h grp.h \
|
|
+ net/if_tap.h \
|
|
sys/sockio.h sys/uio.h linux/sockios.h \
|
|
linux/types.h sys/poll.h sys/epoll.h err.h \
|
|
|
|
@@ -14208,6 +14266,9 @@ SOCKET_INCLUDES="
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
#include <sys/socket.h>
|
|
#endif
|
|
+#ifdef HAVE_NET_IF_H
|
|
+#include <net/if.h>
|
|
+#endif
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|
|
@@ -14305,6 +14366,15 @@ $as_echo "#define HAVE_IN_PKTINFO 1" >>c
|
|
|
|
fi
|
|
|
|
+ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "${SOCKET_INCLUDES}
|
|
+
|
|
+"
|
|
+if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
|
|
+
|
|
+$as_echo "#define HAVE_IPI_SPEC_DST 1" >>confdefs.h
|
|
+
|
|
+fi
|
|
+
|
|
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
|
|
|
|
"
|