configure.ac: fix --enable/disable-kmod option
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 21 Jun 2016 20:29:38 +0000 (16:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Jun 2016 19:47:52 +0000 (15:47 -0400)
Now all the following work as expected:

  * No option (defaults to --enable-kmod)
  * --disable-kmod
  * --enable-kmod
  * --enable-kmod=no
  * --enable-kmod=yes

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac

index 1aed41ed14457b4efcc985876047ed7c5792e56a..ccd1b10a0f3a43da1477440e7b67d9ad1ba58211 100644 (file)
@@ -264,7 +264,7 @@ AC_ARG_WITH(kmod-prefix,
 
 AC_ARG_ENABLE(kmod,
        AS_HELP_STRING([--disable-kmod],[build without kmod support]),
-       kmod_support=zz$enableval, kmod_support=yes)
+       kmod_support=$enableval, kmod_support=yes)
 
 AS_IF([test "x$kmod_support" = "xyes"], [
        AC_CHECK_LIB([kmod], [kmod_module_probe_insert_module],
This page took 0.028645 seconds and 4 git commands to generate.