# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-AC_INIT([lxc], [0.4.0])
+AC_INIT([lxc], [0.4.1])
AC_CONFIG_SRCDIR([configure.in])
AC_CONFIG_AUX_DIR([config])
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
+AC_ARG_ENABLE(network_destroy, [ --disable-network-destroy disable network destruction at exit [default=no]],, enable_network_destroy=yes)
+if test "x$enable_network_destroy" = "xyes"; then
+ CFLAGS="$CFLAGS -DNETWORK_DESTROY"
+fi
+
AC_SUBST(LXC_MAJOR_VERSION)
AC_SUBST(LXC_MINOR_VERSION)
AC_SUBST(LXC_MICRO_VERSION)
if (lxc_setstate(name, STOPPING))
lxc_log_error("failed to set state %s", lxc_state2str(STOPPING));
+#ifdef NETWORK_DESTROY
if (clone_flags & CLONE_NEWNET && conf_destroy_network(name))
lxc_log_error("failed to destroy the network");
+#endif
err = 0;
out:
err_child_failed:
err_pipe_read2:
err_pipe_write:
+#ifdef NETWORK_DESTROY
if (clone_flags & CLONE_NEWNET)
conf_destroy_network(name);
+#endif
err_create_network:
err_pipe_read:
err_waitpid_failed: