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>
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],