summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-03-08 12:30:13 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2013-03-08 13:03:03 +0100
commitc7286b0a9152033e550b29bec282925363e7fae2 (patch)
tree4f02fd69e0982cf5168fdfbb15149777b9a0a9ce
parent5a8d2ff7d3f310b2effffa9115cc4458a2f95b3e (diff)
Fix AC_ARG_ENABLE use for --enable-generator
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.
-rw-r--r--configure.ac4
1 files 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