[spice-xpi 2/6] Fix AC_ARG_ENABLE use for --enable-generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AC_ARG_ENABLE 3rd argument is what to do when the argument is
specified and the 4th arg is what to do when the argument is
not specified. Using [enable_generator=true] as the 3rd argument
is wrong as this would enable the generator when using
--disable-generator.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4bde0f7..2255531 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,8 +93,8 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 AC_ARG_ENABLE([generator],
   [AS_HELP_STRING([--enable-generator],
                   [Enable compilation of a test page generator])],
-  [enable_generator=true], [enable_generator=false])
-AM_CONDITIONAL([BUILD_GENERATOR], [test x$enable_generator = xtrue])
+  [], [enable_generator=no])
+AM_CONDITIONAL([BUILD_GENERATOR], [test x$enable_generator != xno])
 
 AC_OUTPUT([
 Makefile
-- 
1.8.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]