]> xenbits.xensource.com Git - libvirt.git/commitdiff
uml: only build on Linux
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 8 May 2016 13:31:37 +0000 (16:31 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 10 May 2016 04:42:35 +0000 (07:42 +0300)
m4/virt-driver-uml.m4

index 811e4d1bfff03749dbba7694dec2594ee81c3185..5c83d76e76e496e9e66cd5ad391491aeec355022 100644 (file)
@@ -23,8 +23,12 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[
         [add UML support @<:@default=check@:>@])])
     m4_divert_text([DEFAULTS], [with_uml=check])
 
-    if test "$with_libvirtd" = "no" ; then
-        with_uml=no
+    if test "$with_libvirtd" = "no" || test "$with_linux" = "no"; then
+        if test "$with_uml" = "yes"; then
+            AC_MSG_ERROR([The UML driver cannot be enabled])
+        elif test "$with_uml" = "check"; then
+            with_uml="no"
+        fi
     fi
 
     if test "$with_uml" = "yes" || test "$with_uml" = "check"; then