The --enable/--disable-compat configure switch will enable or disable
compatibility with module-init-tools. Currently, if this is disabled, it
means the man pages for module-init-tools compatible commands are
not installed. The default is enabled.
---
configure.ac | 6 ++++++
man/Makefile.am | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 19f78d5..ba6db6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,6 +45,11 @@ AC_ARG_ENABLE([tools],
[], enable_tools=yes)
AM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"])
+AC_ARG_ENABLE([compat],
+ [AS_HELP_STRING([--disable-compat], [disable module-init-tools
compatible symlinks @<:@default=enabled@:>@])],
+ [], [enable_compat=yes])
+AM_CONDITIONAL([BUILD_COMPAT], [test "x$enable_compat" = "xyes" -a
"x$enable_tools" = "xyes"])
+
AC_ARG_ENABLE([logging],
AS_HELP_STRING([--disable-logging], [disable system logging
@<:@default=enabled@:>@]),
[], enable_logging=yes)
@@ -159,6 +164,7 @@ AC_MSG_RESULT([
ldflags: ${LDFLAGS}
tools: ${enable_tools}
+ compat: ${enable_compat}
logging: ${enable_logging}
compression: xz=${with_xz} zlib=${with_zlib}
debug: ${enable_debug}
diff --git a/man/Makefile.am b/man/Makefile.am
index 0fb8922..5e752f7 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,5 +1,8 @@
MAN5 = depmod.d.5 modprobe.d.5 modules.dep.5
+
+if BUILD_COMPAT
MAN8 = depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
+endif
dist_man_MANS = $(MAN5) $(MAN8) $(MAN_STUB)
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html