From fd711002330470795d800fe615172225943f6442 Mon Sep 17 00:00:00 2001
From: Matthias Bolte <matthias.bolte@googlemail.com>
Date: Tue, 5 Jul 2011 12:42:44 +0200
Subject: [PATCH] tests: Disable networkxml2argvtest when configured without network

Reported by Ruben Kerkhof.
---
 tests/Makefile.am |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 30b2d95..7f5bdc9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -373,10 +373,14 @@ networkxml2xmltest_SOURCES = \
 	testutils.c testutils.h
 networkxml2xmltest_LDADD = $(LDADDS)
 
+if WITH_NETWORK
 networkxml2argvtest_SOURCES = \
 	networkxml2argvtest.c \
 	testutils.c testutils.h
 networkxml2argvtest_LDADD = ../src/libvirt_driver_network.la $(LDADDS)
+else
+EXTRA_DIST += networkxml2argvtest.c
+endif
 
 nwfilterxml2xmltest_SOURCES = \
 	nwfilterxml2xmltest.c \
-- 
1.7.4.1

