From f717d0236ff400eea0fe4bbd2e57db2f783a1713 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 2 May 2008 17:37:49 +0000 Subject: - Support the multi-ip jail patch that's floating around. --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index de431d4..3d97868 100644 --- a/configure.ac +++ b/configure.ac @@ -74,6 +74,13 @@ AC_CHECK_LIB([c], [jail], , [ echo "ERROR: Must have jail capabilities (FreeBSD 4.x or higher)"; exit 1]) AC_CHECK_LIB([c], [jail_attach], [ JAIL_ATTACH=yes; ], ) +AC_CHECK_MEMBER([struct jail.ips], + [ JAIL_MULTIPATCH=yes; AC_DEFINE_UNQUOTED(JAIL_MULTIPATCH, 1, [Patched Multiple IP support])], [], +[[ +#include +#include +#include +]]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST @@ -103,3 +110,8 @@ if test "$JAIL_ATTACH" = "yes"; then else echo "Your version of FreeBSD (4.0 - 5.0) only supports the old utilities" fi + +if test "$JAIL_MULTIPATCH" = "yes"; then + echo "Your version of FreeBSD supports multiple IPs per jail via the patch." +fi + -- cgit v1.2.3