Enable VDE by default if library is present.
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 23 Jul 2008 18:14:33 +0000 (18:14 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 23 Jul 2008 18:14:33 +0000 (18:14 +0000)
VDE isn't used unless the user explicitly asks for it so if the library is
present on the system, we should include support for it.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4931 c046a42c-6fe2-441c-8c8c-71466251a162

configure

index c43fa88..b00df86 100755 (executable)
--- a/configure
+++ b/configure
@@ -89,7 +89,7 @@ mingw32="no"
 EXESUF=""
 gdbstub="yes"
 slirp="yes"
-vde="no"
+vde="yes"
 fmod_lib=""
 fmod_inc=""
 vnc_tls="yes"
@@ -281,7 +281,7 @@ for opt do
   ;;
   --disable-slirp) slirp="no"
   ;;
-  --enable-vde) vde="yes"
+  --disable-vde) vde="no"
   ;;
   --disable-kqemu) kqemu="no"
   ;;
@@ -435,7 +435,7 @@ echo "  --fmod-lib               path to FMOD library"
 echo "  --fmod-inc               path to FMOD includes"
 echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
 echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
-echo "  --enable-vde             enable support for vde network [$vde]"
+echo "  --disable-vde            disable support for vde network"
 echo ""
 echo "NOTE: The object files are built at the place where configure is launched"
 exit 1
@@ -735,11 +735,7 @@ EOF
     if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
         :
     else
-        echo
-        echo "Error: VDE check failed"
-        echo "Make sure to have the VDE libs and headers installed."
-        echo
-        exit 1
+        vde="no"
     fi
 fi